package com.distribute.framework.model;

import com.distribute.framework.core.web.helper.Utils;
import java.lang.reflect.Field;
import java.util.Date; 
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.ArrayList;

import javax.annotation.Resource;

import com.distribute.framework.core.web.util.Page;
import com.distribute.framework.core.lang.*; 
import com.distribute.framework.core.web.helper.WebHelper.LzMap;
import com.distribute.framework.core.util.Function;
import com.distribute.framework.core.util.IbatisMap;
import com.distribute.framework.config.*;
import com.distribute.framework.plugin.*;

@namespace("goods/directorder")
public @caption("商品订单") @database(DatabaseNames.distribute_sys) @source("distribute_sys") @table("direct_order") class DirectOrder implements java.io.Serializable
{
	private static final long serialVersionUID = 1l;
		
	
		
	private @caption("编号") @column("id")    @primary  @notnull  @note("  ") Long id;// 主键 非空     
			
 			
 			
 		
	
		
	private @caption("订单号") @column("no") @like    @notnull  @note("  ") String no;// 非空     
			
 			
 			
 		
	
		
	private @caption("品牌商") @column("merchant")      @relate("$merchant") @RelateClass(Merchant.class)  @note("  ") Long merchant;//     
			
 	private transient Merchant $merchant;//关联对象[品牌信息]
 			
 			
 			
 		
	
		
	private @caption("经销商") @column("jxs") @like  @hidden    @note("  ") String jxs;//     
			
 			
 			
 		
	
		
	private @caption("订单类型") @column("order_type")      @note(" 1:直接购买订单 2:余额提货订单  ") Short orderType;// 1:直接购买订单 2:余额提货订单     
			
 			
 			
 		
	
		
	private transient @caption("用户编号") @column("uid")    @primary  @notnull  @note("  ") Long uid;// 主键 非空     
			
 			
 			
 		
	
		
	private @caption("下单人") @column("member_name") @like     @note("  ") String memberName;//     
			
 			
 			
 		
	
		
	private @caption("会员信息") @column("member")   @hidden   @notnull  @relate("$member") @RelateClass(Member.class)  @note("  ") Long member;// 非空     
			
 	private transient Member $member;//关联对象[会员信息]
 			
 			
 			
 		
	
		
				
	private transient @caption("订单明细") String details;//关联对象[订单明细]json
	private transient List<OrderDetails> $details;//关联对象[订单明细]列表
			
		
	
		
	private @caption("备注信息") @column("remarks") @like     @note("  ") String remarks;//     
			
 			
 			
 		
	
		
	private @caption("物流方式") @column("logis_mode")      @note(" shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件  ") String logisMode;// shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件     
			
 			
 			
 		
	
		
	private @caption("送货地址") @column("address") @like     @note("  ") String address;//     
			
 			
 			
 		
	
		
	private @caption("地址编号") @column("street")   @hidden    @note("  ") Long street;//     
			
 			
 			
 		
	
		
	private @caption("经度") @column("longitude")   @hidden    @note("  ") String longitude;//     
			
 			
 			
 		
	
		
	private @caption("纬度") @column("latitude")   @hidden    @note("  ") String latitude;//     
			
 			
 			
 		
	
		
	private @caption("所属地区") @column("region_city")   @hidden    @relate("$regionCity") @RelateClass(Region.class)  @note("  ") Long regionCity;//     
			
 	private transient Region $regionCity;//关联对象[省市地区]
 			
 			
 			
 		
	
		
	private @caption("收货人姓名") @column("consignee_name")      @note("  ") String consigneeName;//     
			
 			
 			
 		
	
		
	private @caption("收货电话号") @column("receiving_telephone_number")      @note("  ") String receivingTelephoneNumber;//     
			
 			
 			
 		
	
		
	private @caption("性别") @column("gender")      @note(" 1:男 2:女  ") Short gender;// 1:男 2:女     
			
 			
 			
 		
	
		
	private @caption("快递单号") @column("courier")      @note("  ") String courier;//     
			
 			
 			
 		
	
		
	private @caption("配送方式") @column("distribution_mode")      @note(" 1:到店自提 2:送货上门  ") Short distributionMode;// 1:到店自提 2:送货上门     
			
 			
 			
 		
	
		
	private @caption("配送商名称") @column("distributor_name") @like     @note("  ") String distributorName;//     
			
 			
 			
 		
	
		
	private @caption("配送商") @column("distributor")   @hidden    @relate("$distributor") @RelateClass(Distributor.class)  @note("  ") Long distributor;//     
			
 	private transient Distributor $distributor;//关联对象[配送商信息]
 			
 			
 			
 		
	
		
	private @caption("配送商收益") @column("distributor_income")      @note("  ") Double distributorIncome;//     
			
 			
 			
 		
	
		
	private @caption("接单类型") @column("s_type")      @note(" 1:配送商接单 2:退回品牌总部 3:暂不可接单  ") Short sType;// 1:配送商接单 2:退回品牌总部 3:暂不可接单     
			
 			
 			
 		
	
		
	private @caption("自提地址") @column("self_address")   @hidden    @note("  ") String selfAddress;//     
			
 			
 			
 		
	
		
	private @caption("配送费") @column("dispat_fee")   @hidden    @note("  ") Double dispatFee;//     
			
 			
 			
 		
	
		
	private @caption("使用优惠券") @column("coupon")   @hidden    @relate("$coupon") @RelateClass(Coupon.class)  @note("  ") Long coupon;//     
			
 	private transient Coupon $coupon;//关联对象[用户优惠券]
 			
 			
 			
 		
	
		
	private @caption("使用产品券") @column("use_product_vouchers")   @hidden    @note("  ") String useProductVouchers;//     
			
 			
 			
 		
	
		
	private @caption("优惠卷抵扣") @column("coupon_free")   @hidden    @note("  ") Double couponFree;//     
			
 			
 			
 		
	
		
	private @caption("产品卷抵扣") @column("product_free")   @hidden    @note("  ") Double productFree;//     
			
 			
 			
 		
	
		
	private @caption("总金额") @column("total_sum")      @note("  ") Double totalSum;//     
			
 			
 			
 		
	
		
	private @caption("实际支付") @column("actual_pay")      @note("  ") Double actualPay;//     
			
 			
 			
 		
	
		
	private @caption("支付情况") @column("pays_status")      @note(" 0:未支付 1:已支付  ") Short paysStatus;// 0:未支付 1:已支付     
			
 			
 			
 		
	
		
	private @caption("支付协议") @column("agreement")   @hidden    @note(" 1:同意 2:不同意  ") Short agreement;// 1:同意 2:不同意     
			
 			
 			
 		
	
		
	private @caption("实际处理方") @column("processor")   @hidden    @note(" 1:待确定 2:品牌总部 3:配送商  ") Short processor;// 1:待确定 2:品牌总部 3:配送商     
			
 			
 			
 		
	
		
	private @caption("售后类型") @column("after_s_type")   @hidden    @note(" 0:暂无 1:投诉 2:退款  ") Short afterSType;// 0:暂无 1:投诉 2:退款     
			
 			
 			
 		
	
		
	private @caption("投诉理由") @column("complaint") @like  @hidden    @note("  ") String complaint;//     
			
 			
 			
 		
	
		
	private @caption("投诉是处理") @column("dealted")   @hidden    @note(" 0:无投诉 1:未处理 2:已处理  ") Short dealted;// 0:无投诉 1:未处理 2:已处理     
			
 			
 			
 		
	
		
	private @caption("退款状态") @column("refund_status")      @note(" 0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款  ") Short refundStatus;// 0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款     
			
 			
 			
 		
	
		
	private @caption("拒绝退款理由") @column("refuse_refund") @like  @hidden    @note("  ") String refuseRefund;//     
			
 			
 			
 		
	
		
	private @caption("会员退款理由") @column("me_refund_money") @like  @hidden    @note("  ") String meRefundMoney;//     
			
 			
 			
 		
	
		
	private @caption("formId") @column("directo_formid")      @note("  ") String directoFormid;//     
			
 			
 			
 		
	
		
	private @caption("接单时间") @column("get_order_time")   @hidden    @note("  ") Date getOrderTime;//     
			
 			
 			
 		
	
		
	private @caption("打款原因") @column("erro_log")   @hidden    @note("  ") String erroLog;//     
			
 			
 			
 		
	
		
	private @caption("修改时间") @column("update_time")     @notnull  @note("  ") Date updateTime;// 非空     
			
 			
 			
 		
	
		
	private @caption("添加时间") @column("add_time")     @notnull  @note("  ") Date addTime;// 非空     
			
 			
 			
 		
	
		
	private @caption("状态") @column("status")     @notnull  @note(" 1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除  ") Short status;// 非空 1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除     
			
 			
 			
 		
	
		
	private @caption("抵消") @column("dx")   @hidden    @note("  ") Double dx;//     
			
 			
 			
 		
	
	 
	//默认构造函数
	public DirectOrder(){ 
	
	}
	
	//主键构造函数
	public DirectOrder(Long id){
		this.id = id;
	}
	
	/**所有字段构造函数 
	 DirectOrder(
	 	Utils.getString("")//订单号 [非空]
	 	,Utils.getLong("")//品牌商
	 	,Utils.getString("")//经销商
	 	,Utils.getShort("type")//订单类型
	 	,Utils.getString("name")//下单人
	 	,Utils.getLong("")//会员信息 [非空]
	 	,Utils.getString("")//备注信息
	 	,Utils.getString("mode")//物流方式
	 	,Utils.getString("")//送货地址
	 	,Utils.getLong("")//地址编号
	 	,Utils.getString("")//经度
	 	,Utils.getString("")//纬度
	 	,Utils.getLong("city")//所属地区
	 	,Utils.getString("name")//收货人姓名
	 	,Utils.getString("telephoneNumber")//收货电话号
	 	,Utils.getShort("")//性别
	 	,Utils.getString("")//快递单号
	 	,Utils.getShort("mode")//配送方式
	 	,Utils.getString("name")//配送商名称
	 	,Utils.getLong("")//配送商
	 	,Utils.getDouble("income")//配送商收益
	 	,Utils.getShort("type")//接单类型
	 	,Utils.getString("address")//自提地址
	 	,Utils.getDouble("fee")//配送费
	 	,Utils.getLong("")//使用优惠券
	 	,Utils.getString("productVouchers")//使用产品券
	 	,Utils.getDouble("free")//优惠卷抵扣
	 	,Utils.getDouble("free")//产品卷抵扣
	 	,Utils.getDouble("sum")//总金额
	 	,Utils.getDouble("pay")//实际支付
	 	,Utils.getShort("status")//支付情况
	 	,Utils.getShort("")//支付协议
	 	,Utils.getShort("")//实际处理方
	 	,Utils.getShort("sType")//售后类型
	 	,Utils.getString("")//投诉理由
	 	,Utils.getShort("")//投诉是处理
	 	,Utils.getShort("status")//退款状态
	 	,Utils.getString("refund")//拒绝退款理由
	 	,Utils.getString("refundMoney")//会员退款理由
	 	,Utils.getString("formid")//formId
	 	,Utils.getDate("orderTime")//接单时间
	 	,Utils.getString("log")//打款原因
	 	,Utils.getDate("time")//修改时间 [非空]
	 	,Utils.getDate("time")//添加时间 [非空]
	 	,Utils.getShort("")//状态 [非空]
	 	,Utils.getDouble("")//抵消
	 )
	**/
	public DirectOrder(String no,Long merchant,String jxs,Short orderType,String memberName,Long member,String remarks,String logisMode,String address,Long street,String longitude,String latitude,Long regionCity,String consigneeName,String receivingTelephoneNumber,Short gender,String courier,Short distributionMode,String distributorName,Long distributor,Double distributorIncome,Short sType,String selfAddress,Double dispatFee,Long coupon,String useProductVouchers,Double couponFree,Double productFree,Double totalSum,Double actualPay,Short paysStatus,Short agreement,Short processor,Short afterSType,String complaint,Short dealted,Short refundStatus,String refuseRefund,String meRefundMoney,String directoFormid,Date getOrderTime,String erroLog,Date updateTime,Date addTime,Short status,Double dx){
		
			
			
		this.no=no;
		
			
		this.merchant=merchant;
		
			
		this.jxs=jxs;
		
			
		this.orderType=orderType;
		
			
			
		this.memberName=memberName;
		
			
		this.member=member;
		
			
			
		this.remarks=remarks;
		
			
		this.logisMode=logisMode;
		
			
		this.address=address;
		
			
		this.street=street;
		
			
		this.longitude=longitude;
		
			
		this.latitude=latitude;
		
			
		this.regionCity=regionCity;
		
			
		this.consigneeName=consigneeName;
		
			
		this.receivingTelephoneNumber=receivingTelephoneNumber;
		
			
		this.gender=gender;
		
			
		this.courier=courier;
		
			
		this.distributionMode=distributionMode;
		
			
		this.distributorName=distributorName;
		
			
		this.distributor=distributor;
		
			
		this.distributorIncome=distributorIncome;
		
			
		this.sType=sType;
		
			
		this.selfAddress=selfAddress;
		
			
		this.dispatFee=dispatFee;
		
			
		this.coupon=coupon;
		
			
		this.useProductVouchers=useProductVouchers;
		
			
		this.couponFree=couponFree;
		
			
		this.productFree=productFree;
		
			
		this.totalSum=totalSum;
		
			
		this.actualPay=actualPay;
		
			
		this.paysStatus=paysStatus;
		
			
		this.agreement=agreement;
		
			
		this.processor=processor;
		
			
		this.afterSType=afterSType;
		
			
		this.complaint=complaint;
		
			
		this.dealted=dealted;
		
			
		this.refundStatus=refundStatus;
		
			
		this.refuseRefund=refuseRefund;
		
			
		this.meRefundMoney=meRefundMoney;
		
			
		this.directoFormid=directoFormid;
		
			
		this.getOrderTime=getOrderTime;
		
			
		this.erroLog=erroLog;
		
			
		this.updateTime=updateTime;
		
			
		this.addTime=addTime;
		
			
		this.status=status;
		
			
		this.dx=dx;
		
	}
	
	//设置非空字段
	public DirectOrder setNotNull(String no,Long member,Date updateTime,Date addTime,Short status){
		
			
			
		this.no=no;
		
			
			
			
			
			
			
		this.member=member;
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
		this.updateTime=updateTime;
		
			
		this.addTime=addTime;
		
			
		this.status=status;
		
			
		return this;
	}
	
	
		
	/** 编号 [非空]       **/
	public DirectOrder id(Long id){
		this.id = id;
		this.setSeted(F.id);
		return this;
	}
	
		
	/** 订单号 [非空]       **/
	public DirectOrder no(String no){
		this.no = no;
		this.setSeted(F.no);
		return this;
	}
	
		
	/** 品牌商  [Merchant]      **/
	public DirectOrder merchant(Long merchant){
		this.merchant = merchant;
		this.setSeted(F.merchant);
		return this;
	}
	
		
	/** 经销商        **/
	public DirectOrder jxs(String jxs){
		this.jxs = jxs;
		this.setSeted(F.jxs);
		return this;
	}
	
		
	/** 订单类型    1:直接购买订单 2:余额提货订单     **/
	public DirectOrder orderType(Short orderType){
		this.orderType = orderType;
		this.setSeted(F.orderType);
		return this;
	}
	
		
		
	/** 下单人        **/
	public DirectOrder memberName(String memberName){
		this.memberName = memberName;
		this.setSeted(F.memberName);
		return this;
	}
	
		
	/** 会员信息 [非空] [Member]      **/
	public DirectOrder member(Long member){
		this.member = member;
		this.setSeted(F.member);
		return this;
	}
	
		
		
	/** 备注信息        **/
	public DirectOrder remarks(String remarks){
		this.remarks = remarks;
		this.setSeted(F.remarks);
		return this;
	}
	
		
	/** 物流方式    shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件     **/
	public DirectOrder logisMode(String logisMode){
		this.logisMode = logisMode;
		this.setSeted(F.logisMode);
		return this;
	}
	
		
	/** 送货地址        **/
	public DirectOrder address(String address){
		this.address = address;
		this.setSeted(F.address);
		return this;
	}
	
		
	/** 地址编号        **/
	public DirectOrder street(Long street){
		this.street = street;
		this.setSeted(F.street);
		return this;
	}
	
		
	/** 经度        **/
	public DirectOrder longitude(String longitude){
		this.longitude = longitude;
		this.setSeted(F.longitude);
		return this;
	}
	
		
	/** 纬度        **/
	public DirectOrder latitude(String latitude){
		this.latitude = latitude;
		this.setSeted(F.latitude);
		return this;
	}
	
		
	/** 所属地区  [Region]      **/
	public DirectOrder regionCity(Long regionCity){
		this.regionCity = regionCity;
		this.setSeted(F.regionCity);
		return this;
	}
	
		
	/** 收货人姓名        **/
	public DirectOrder consigneeName(String consigneeName){
		this.consigneeName = consigneeName;
		this.setSeted(F.consigneeName);
		return this;
	}
	
		
	/** 收货电话号        **/
	public DirectOrder receivingTelephoneNumber(String receivingTelephoneNumber){
		this.receivingTelephoneNumber = receivingTelephoneNumber;
		this.setSeted(F.receivingTelephoneNumber);
		return this;
	}
	
		
	/** 性别    1:男 2:女     **/
	public DirectOrder gender(Short gender){
		this.gender = gender;
		this.setSeted(F.gender);
		return this;
	}
	
		
	/** 快递单号        **/
	public DirectOrder courier(String courier){
		this.courier = courier;
		this.setSeted(F.courier);
		return this;
	}
	
		
	/** 配送方式    1:到店自提 2:送货上门     **/
	public DirectOrder distributionMode(Short distributionMode){
		this.distributionMode = distributionMode;
		this.setSeted(F.distributionMode);
		return this;
	}
	
		
	/** 配送商名称        **/
	public DirectOrder distributorName(String distributorName){
		this.distributorName = distributorName;
		this.setSeted(F.distributorName);
		return this;
	}
	
		
	/** 配送商  [Distributor]      **/
	public DirectOrder distributor(Long distributor){
		this.distributor = distributor;
		this.setSeted(F.distributor);
		return this;
	}
	
		
	/** 配送商收益        **/
	public DirectOrder distributorIncome(Double distributorIncome){
		this.distributorIncome = distributorIncome;
		this.setSeted(F.distributorIncome);
		return this;
	}
	
		
	/** 接单类型    1:配送商接单 2:退回品牌总部 3:暂不可接单     **/
	public DirectOrder sType(Short sType){
		this.sType = sType;
		this.setSeted(F.sType);
		return this;
	}
	
		
	/** 自提地址        **/
	public DirectOrder selfAddress(String selfAddress){
		this.selfAddress = selfAddress;
		this.setSeted(F.selfAddress);
		return this;
	}
	
		
	/** 配送费        **/
	public DirectOrder dispatFee(Double dispatFee){
		this.dispatFee = dispatFee;
		this.setSeted(F.dispatFee);
		return this;
	}
	
		
	/** 使用优惠券  [Coupon]      **/
	public DirectOrder coupon(Long coupon){
		this.coupon = coupon;
		this.setSeted(F.coupon);
		return this;
	}
	
		
	/** 使用产品券        **/
	public DirectOrder useProductVouchers(String useProductVouchers){
		this.useProductVouchers = useProductVouchers;
		this.setSeted(F.useProductVouchers);
		return this;
	}
	
		
	/** 优惠卷抵扣        **/
	public DirectOrder couponFree(Double couponFree){
		this.couponFree = couponFree;
		this.setSeted(F.couponFree);
		return this;
	}
	
		
	/** 产品卷抵扣        **/
	public DirectOrder productFree(Double productFree){
		this.productFree = productFree;
		this.setSeted(F.productFree);
		return this;
	}
	
		
	/** 总金额        **/
	public DirectOrder totalSum(Double totalSum){
		this.totalSum = totalSum;
		this.setSeted(F.totalSum);
		return this;
	}
	
		
	/** 实际支付        **/
	public DirectOrder actualPay(Double actualPay){
		this.actualPay = actualPay;
		this.setSeted(F.actualPay);
		return this;
	}
	
		
	/** 支付情况    0:未支付 1:已支付     **/
	public DirectOrder paysStatus(Short paysStatus){
		this.paysStatus = paysStatus;
		this.setSeted(F.paysStatus);
		return this;
	}
	
		
	/** 支付协议    1:同意 2:不同意     **/
	public DirectOrder agreement(Short agreement){
		this.agreement = agreement;
		this.setSeted(F.agreement);
		return this;
	}
	
		
	/** 实际处理方    1:待确定 2:品牌总部 3:配送商     **/
	public DirectOrder processor(Short processor){
		this.processor = processor;
		this.setSeted(F.processor);
		return this;
	}
	
		
	/** 售后类型    0:暂无 1:投诉 2:退款     **/
	public DirectOrder afterSType(Short afterSType){
		this.afterSType = afterSType;
		this.setSeted(F.afterSType);
		return this;
	}
	
		
	/** 投诉理由        **/
	public DirectOrder complaint(String complaint){
		this.complaint = complaint;
		this.setSeted(F.complaint);
		return this;
	}
	
		
	/** 投诉是处理    0:无投诉 1:未处理 2:已处理     **/
	public DirectOrder dealted(Short dealted){
		this.dealted = dealted;
		this.setSeted(F.dealted);
		return this;
	}
	
		
	/** 退款状态    0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款     **/
	public DirectOrder refundStatus(Short refundStatus){
		this.refundStatus = refundStatus;
		this.setSeted(F.refundStatus);
		return this;
	}
	
		
	/** 拒绝退款理由        **/
	public DirectOrder refuseRefund(String refuseRefund){
		this.refuseRefund = refuseRefund;
		this.setSeted(F.refuseRefund);
		return this;
	}
	
		
	/** 会员退款理由        **/
	public DirectOrder meRefundMoney(String meRefundMoney){
		this.meRefundMoney = meRefundMoney;
		this.setSeted(F.meRefundMoney);
		return this;
	}
	
		
	/** formId        **/
	public DirectOrder directoFormid(String directoFormid){
		this.directoFormid = directoFormid;
		this.setSeted(F.directoFormid);
		return this;
	}
	
		
	/** 接单时间        **/
	public DirectOrder getOrderTime(Date getOrderTime){
		this.getOrderTime = getOrderTime;
		this.setSeted(F.getOrderTime);
		return this;
	}
	
		
	/** 打款原因        **/
	public DirectOrder erroLog(String erroLog){
		this.erroLog = erroLog;
		this.setSeted(F.erroLog);
		return this;
	}
	
		
	/** 修改时间 [非空]       **/
	public DirectOrder updateTime(Date updateTime){
		this.updateTime = updateTime;
		this.setSeted(F.updateTime);
		return this;
	}
	
		
	/** 添加时间 [非空]       **/
	public DirectOrder addTime(Date addTime){
		this.addTime = addTime;
		this.setSeted(F.addTime);
		return this;
	}
	
		
	/** 状态 [非空]   1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除     **/
	public DirectOrder status(Short status){
		this.status = status;
		this.setSeted(F.status);
		return this;
	}
	
		
	/** 抵消        **/
	public DirectOrder dx(Double dx){
		this.dx = dx;
		this.setSeted(F.dx);
		return this;
	}
	
	
	
	/**
	* 克隆对象
	**/
	public DirectOrder clone(){
		DirectOrder clone = new DirectOrder();
		
			
			
		clone.no=this.no;
		
			
		clone.merchant=this.merchant;
		
			
		clone.jxs=this.jxs;
		
			
		clone.orderType=this.orderType;
		
			
			
		clone.memberName=this.memberName;
		
			
		clone.member=this.member;
		
			
			
		clone.remarks=this.remarks;
		
			
		clone.logisMode=this.logisMode;
		
			
		clone.address=this.address;
		
			
		clone.street=this.street;
		
			
		clone.longitude=this.longitude;
		
			
		clone.latitude=this.latitude;
		
			
		clone.regionCity=this.regionCity;
		
			
		clone.consigneeName=this.consigneeName;
		
			
		clone.receivingTelephoneNumber=this.receivingTelephoneNumber;
		
			
		clone.gender=this.gender;
		
			
		clone.courier=this.courier;
		
			
		clone.distributionMode=this.distributionMode;
		
			
		clone.distributorName=this.distributorName;
		
			
		clone.distributor=this.distributor;
		
			
		clone.distributorIncome=this.distributorIncome;
		
			
		clone.sType=this.sType;
		
			
		clone.selfAddress=this.selfAddress;
		
			
		clone.dispatFee=this.dispatFee;
		
			
		clone.coupon=this.coupon;
		
			
		clone.useProductVouchers=this.useProductVouchers;
		
			
		clone.couponFree=this.couponFree;
		
			
		clone.productFree=this.productFree;
		
			
		clone.totalSum=this.totalSum;
		
			
		clone.actualPay=this.actualPay;
		
			
		clone.paysStatus=this.paysStatus;
		
			
		clone.agreement=this.agreement;
		
			
		clone.processor=this.processor;
		
			
		clone.afterSType=this.afterSType;
		
			
		clone.complaint=this.complaint;
		
			
		clone.dealted=this.dealted;
		
			
		clone.refundStatus=this.refundStatus;
		
			
		clone.refuseRefund=this.refuseRefund;
		
			
		clone.meRefundMoney=this.meRefundMoney;
		
			
		clone.directoFormid=this.directoFormid;
		
			
		clone.getOrderTime=this.getOrderTime;
		
			
		clone.erroLog=this.erroLog;
		
			
		clone.updateTime=this.updateTime;
		
			
		clone.addTime=this.addTime;
		
			
		clone.status=this.status;
		
			
		clone.dx=this.dx;
		
		return clone;
	}
	
	
	
	
	
	/**
	 * 根据ID取商品订单
	 * @param id
	 * @return
	 */
	public static @api DirectOrder get(Long id){		
		return getDirectOrderById(id);
	}
	
	
	
	/**
	 * 获取所有商品订单
	 * @return
	 */
	public static @api List<DirectOrder> list(Map params,Integer size){
		return getDirectOrderList(params,size);
	}
	/**
	 * 获取商品订单分页
	 * @return
	 */
	public static @api Page<DirectOrder> page(Integer page,Integer size,Map params){
		return getDirectOrderPage(page, size , params);
	}
	
	
	/**
	 * 根据查询条件取商品订单
	 * @param params
	 * @return
	 */
	public static @api DirectOrder Get(Map params){
		return getDirectOrder(params);
	}
	/**
	 * 获取商品订单数
	 * @return
	 */
	public static @api Long count(Map params){
		return getDirectOrderCount(params);
	}
	/**
	 * 获取商品订单数
	 * @return
	 */
	public static @api <T> T eval(String eval,Map params){
		return getDirectOrderEval(eval,params);
	}
	
	
	/**
	 * 获取商品订单图表统计数据
	 * @param params 查询条件
	 * @param sumKey 统计的字段
	 * @param groupKey 1:按年， 2：按月， 3：按周， 4：按日， 5：按小时， 6：月分， 7：日分， 8：点分
	 * @return
	 */
	public static @api List<Map> stats(Map params,C sumKey,C groupKey){
		return getDirectOrderStats(params,sumKey,groupKey,-1);
	}
	/**
	 * 获取商品订单图表统计数据
	 * @param params 查询条件
	 * @param sumKey 统计的字段
	 * @param groupKey 分组的字段
	 * @param dateType 1:按年， 2：按月， 3：按周， 4：按日， 5：按小时， 6：月分， 7：日分， 8：点分
	 * @return
	 */
	public static @api List<Map> stats(Map params,C sumKey,C groupKey,int dateType){
		return getDirectOrderStats(params,sumKey,groupKey,dateType);
	}
	
	
	/**
	 * 根据ID取商品订单
	 * @param id
	 * @return
	 */
	public static @api DirectOrder getDirectOrderById(Long id){		
		return getDirectOrderDao().getDirectOrderById(id);
	}
	
	
	
	
	/**
	 * 根据ID取商品订单的标识键值
	 * @param id
	 * @return
	 */
	public static @api String getKeyValue(Object key){
		Long id = Utils.parseLong(key);	
		if(id==null || id.longValue()==0 ){
			
			return null;
			
		}
		String value = null;
				
		if(value==null){
			DirectOrder directOrder = get(id);
			if(directOrder!=null){
				String strValue = directOrder.getNo$();
				
				if(!"No".equals("No"))
					strValue+="("+directOrder.getNo$()+")";
				
				
				value = strValue;
			}else{
				
				value = "{"+id+"}";
			}
		}
		
		/************LAZY3Q_ID_KEYVALUE************/
		/************LAZY3Q_ID_KEYVALUE************/
		return value;
	}	
	
	
	/**
	 * 获取当前对象的键值
	 * @return
	 */
	public String getKeyValue(){
		
		/************LAZY3Q_CODE_KEYVALUE************/
		/************LAZY3Q_CODE_KEYVALUE************/
		String keyValue = this.getNo$();
		
		if(!"No".equals("No"))
			keyValue+="("+this.getNo$()+")";
		
		return keyValue;
	}
	
	
	/**
	 * 根据关键字精确查询商品订单对象
	 * @return
	 */
	public static @api DirectOrder find(String key){
		if(Utils.empty(key))return null;
		Map params = new HashMap();
		if(key.toLowerCase().startsWith("id:"))//如果查询条件以id:开头，则按ID查询
			params.put("id", key.toLowerCase().replaceFirst("id:", ""));					
		else{//按标识查询，精确查询
			String strDefinex = "";
			
			strDefinex+=" or no = '"+key.replaceAll("'", "''")+"'";
			
			strDefinex="(2=1 "+strDefinex+")";
			params.put("definex",strDefinex);
		}
		
		/************LAZY3Q_CODE_FIND************/
		/************LAZY3Q_CODE_FIND************/
		return DirectOrder.getDirectOrder(params);
	}
	
	
	/**
	 * 根据关键字查询商品订单
	 * @return
	 */
	public static @api List<Map> query(String key,int size,Map params,Boolean bObject){
		if(Utils.empty((String)params.get("asc")) && Utils.empty((String)params.get("desc")))//如果未传入排序字段
			params.put("desc","id");//那么，默认以主键降序，传给Dao层
		String strTerm=key;		
		if(!Utils.empty(strTerm)){
			if(strTerm.toLowerCase().startsWith("id:"))//如果查询条件以id:开头，则按ID查询
				params.put("id", strTerm.toLowerCase().replaceFirst("id:", ""));					
			else//按标识查询，模糊查询请带%
			{
				String strDefinex = "";
				
				strDefinex+=" or no like '%"+strTerm.replaceAll("'", "''")+"%'";
				
				strDefinex="(2=1 "+strDefinex+")";
				params.put("definex",strDefinex);
			}
		}
		
		
		/************LAZY3Q_CODE_QUERY************/
		/************LAZY3Q_CODE_QUERY************/
			
		List<DirectOrder> list = page(0,size,params).getResult();
		
		/**
		* OK!取到数据拼成放入Map中，[{value,text,object:{...}},...]
		* value:数据ID，text:数据标识,object,整个对象
		**/
		List<Map> result = new java.util.ArrayList();
		for(DirectOrder directOrder:list){
			Map map = new HashMap();
			map.put("key",directOrder.getId().toString());
			map.put("value", Utils.js(directOrder.getKeyValue()));
			if(bObject==true)
				map.put("object",directOrder);
			result.add(map);
		}
		
		
		/************LAZY3Q_AFTER_QUERY************/
		/************LAZY3Q_AFTER_QUERY************/
		
		return result;
	}
	
	
	
	/**
	 * 获取所有商品订单
	 * @return
	 */
	public static @api List<DirectOrder> getDirectOrderList(Map params,Integer size){
		return getDirectOrderDao().getDirectOrderList(params,0,size);
	}
	
	/**
	 * 获取商品订单分页
	 * @return
	 */
	public static @api Page<DirectOrder> getDirectOrderPage(Integer page,Integer size,Map params){
		if(page==null)page=0;
		if(size==null)size=20;
		return getDirectOrderDao().getDirectOrderPage(page, size , params);
	}
	
	/**
	 * 根据查询条件取商品订单
	 * @param params
	 * @return
	 */
	public static @api DirectOrder getDirectOrder(Map params){
		return getDirectOrderDao().getDirectOrder(params);
	}
	
	/**
	 * 保存一个商品订单
	 * @param directOrder
	 * @return
	 */
	public static @api DirectOrder saveDirectOrder(DirectOrder directOrder){
		return getDirectOrderDao().saveDirectOrder(directOrder);
	}
	
	/**
	 * 根据条件更新商品订单
	 * @param values
	 * @param params
	 */
	public static @api int updateDirectOrderByConfirm(Map values, Map params){
		return getDirectOrderDao().updateDirectOrderByConfirm(values,params);
	}
	
	/**
	 * 修改一个商品订单
	 * @param directOrder
	 * @return
	 */
	public static @api int updateDirectOrder(DirectOrder directOrder){
		return getDirectOrderDao().updateDirectOrder(directOrder);
	}
	
	/**
	 * 更新商品订单非空字段
	 * @param directOrder
	 */
	public static @api int updateDirectOrder$NotNull(DirectOrder directOrder){
		return getDirectOrderDao().updateDirectOrder$NotNull(directOrder);
	}
	
	/**
	 * 获取商品订单数
	 * @return
	 */
	public static @api Long getDirectOrderCount(Map params){
		return getDirectOrderDao().getDirectOrderCount(params);
	}
		
		
	/**
	 * 获取商品订单自定义求和表达式,比如求和:eval="sum(id)"
	 * @return
	 */	
	public static @api <T> T getDirectOrderEval(String eval,Map params){
		return getDirectOrderDao().getDirectOrderEval(eval,params);
	}
	
	
	/**
	 * 获取商品订单图表统计数据
	 * @param params 查询条件
	 * @param sumKey 统计的字段
	 * @param groupKey 分组的字段
	 * @param dateType 1:按年， 2：按月， 3：按周， 4：按日， 5：按小时， 6：月分， 7：日分， 8：点分
	 * @return
	 */
	public static @api List<Map> getDirectOrderStats(Map params,C sumKey,C groupKey,int dateType){
		//TODO:图表统计功能未实现
		
		Map<String,Object> groups=new HashMap();//要分组的字段
		Map<String,Object> sums=new HashMap();//要统计的字段
		
		String[][] dateFormats=new String[][]{
				null,
				new String[]{"%Y","yyyy年","Y"},
				new String[]{"%Y-%m","yyyy年MM月","M"},
				new String[]{"%Y%U","yyyy年第ww周","W"},
				new String[]{"%Y-%m-%d","yyyy年MM月dd日","D"},
				new String[]{"%Y-%m-%d %H","yyyy年MM月dd日 HH点","H"},
				new String[]{"%m","MM月"},
				new String[]{"%d","dd号"},
				new String[]{"%H","HH点"} 
		};
		
		//获取要分组的字段，放入Map中
		if(dateType>0){
			groups.put(groupKey.toString(),"DATE_FORMAT({key},'"+dateFormats[dateType][0]+"')");
		}else{
			groups.put(groupKey.toString(),"{key}");
		}
		if(dateType<6 && dateType>0){ 
			params.put("asc", groupKey.toString()); 
			if(params.get(groupKey.name()+"Start")==null){
				params.put(groupKey.name()+"Start", Utils.date(new Date(), -24, dateFormats[dateType][2]));
			}
		}
		
		
		//获取要统计的字段，放入Map中
		if(sumKey.toString().equals("count")){
			sums.put(sumKey.toString(),"count(*)");
		}else{
			sums.put(sumKey.toString(),"sum({key})");
		}
		
		List<Map> list = getDirectOrderDao().getDirectOrderStats(params,groups,sums);
		
		List<Map> result = new ArrayList();
		for(Map m:list){
			Map map = new HashMap();
			Object value = m.get(sumKey.toString());
			Object name = null;
			Object groupValue = m.get(groupKey.toString());
			if(dateType>0){
				name = Utils.date(Utils.parseDate(groupValue), dateFormats[dateType][1]);
			}else{
				try{
					java.lang.reflect.Method method = DirectOrder.class.getMethod("get"+Utils.ForMat(groupKey.toString())+"$");
					method.setAccessible(true);
					name = method.invoke(DirectOrder.fromMap(m));
				}catch(Exception ex){
					ex.printStackTrace();
				}
			}
			map.put("name", name);
			map.put("value", value);
			result.add(map);
		}
		return result;
	}
	
	
	/**
	 * 根据条件更新数据
	 * @param set
	 * @param where
	 */
	public static int updateDirectOrder(Map set,Map where){
		if(set.isEmpty())throw new RuntimeException("set为空");
		if(where.isEmpty())throw new RuntimeException("where为空");
		where.put("confirm", "1");
		return getDirectOrderDao().updateDirectOrderByConfirm(set, where);
	}
	
	
	/**
	 * 根据条件更新数据
	 * @param set
	 * @param where
	 */
	public static void deleteDirectOrder(Map where){
		if(where.isEmpty())throw new RuntimeException("where为空");
		where.put("confirm", "1");
		getDirectOrderDao().deleteDirectOrderByConfirm(where);
	}
	
	/**
	 * 根据条件更新数据
	 * @param set
	 * @param where
	 */
	public static void delete(Long id){
		if(id==null)throw new RuntimeException("id为空");
		
		getDirectOrderDao().removeDirectOrderById(id);
		
	}
	
	
	/**
	 * 保存商品订单对象
	 * @param params
	 * @return
	 */
	public DirectOrder save(){
		if(this.getId()!=null)
			getDirectOrderDao().updateDirectOrder(this);
		else
			return getDirectOrderDao().saveDirectOrder(this);
		return this;
	}
	
	
	/**
	 * 更新商品订单对象的非空字段,注意跟Service里面的update不一样哦
	 * @param params
	 * @return
	 */
	public int update(){
		return getDirectOrderDao().updateDirectOrder$NotNull(this);
	}
	
	
	/**
	 * 删除
	 * @param params
	 * @return
	 */
	public void delete(){
		
		if(Utils.equals(Utils.config("logic_delete"),"true"))
			getDirectOrderDao().removeDirectOrderById(this.getId());
		else
		
			getDirectOrderDao().deleteDirectOrderById(this.getId());
	}
	
	/**
	 * 执行事务
	 * @param function
	 */
	public static <T> T execute(Function function){
		return getDirectOrderDao().executeTransaction(function);
	}

	
	
	/*******************************编号**********************************/	
	/**
	* 编号 [非空]      
	**/
	public Long getId(){
		
		if(this.id!=null){
			return this.id;
		}
		
		return this.id;
	}
	/**
	* 获取编号格式化(toString)
	**/
	public String getId$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getId());
	 
	 	 return strValue;
	}
	/**
	* 根据编号反格式化
	**/
	public void setId$(String strValue){
		if(Utils.empty(strValue)){
			this.id=null;
			return;
		}
	
	
	 	this.id=Utils.parseLong(strValue);
	 
	}
	
	/**
	* 编号 [非空]      
	**/
	public void setId(Long id){
		this.id = id;
		
		this.setSeted(F.id);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************订单号**********************************/	
	/**
	* 订单号 [非空]      
	**/
	public String getNo(){
		
		if(this.no!=null){
			return this.no;
		}
		
		return this.no;
	}
	/**
	* 获取订单号格式化(toString)
	**/
	public String getNo$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getNo());
	 
	 	 return strValue;
	}
	/**
	* 根据订单号反格式化
	**/
	public void setNo$(String strValue){
		if(Utils.empty(strValue)){
			this.no=null;
			return;
		}
	
	
	 	this.no=strValue;
	 
	}
	
	/**
	* 订单号 [非空]      
	**/
	public void setNo(String no){
		this.no = no;
		
		this.setSeted(F.no);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************品牌商**********************************/	
	/**
	* 品牌商  [Merchant]     
	**/
	public Long getMerchant(){
		
		if(this.merchant!=null){
			return this.merchant;
		}
		
		return this.merchant;
	}
	/**
	* 获取品牌商格式化(toString)
	**/
	public String getMerchant$(){
		String strValue="";
	
	
		 
		if(this.getMerchant()!=null){
			
				strValue+=Utils.string(Merchant.getKeyValue(this.getMerchant()));
			
		}			
		 
	 
	 	 return strValue;
	}
	/**
	* 根据品牌商反格式化
	**/
	public void setMerchant$(String strValue){
		if(Utils.empty(strValue)){
			this.merchant=null;
			return;
		}
	
	
		 
		Merchant item = Merchant.find(strValue);
		if(item!=null){
			
			this.merchant = Utils.parseLong(item.getId());
			
		}
		 
	 
	}
	
	/**
	* 品牌商  [Merchant]     
	**/
	public void setMerchant(Long merchant){
		this.merchant = merchant;
		
		this.setSeted(F.merchant);
		
	}
	
	
		 
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 		
	/**
	* 获取关联对象[品牌信息]
	**/	 			
 	public Merchant get$merchant(){
 		if(this.$merchant!=null)
 			return this.$merchant;
 		com.distribute.framework.model.Merchant merchant = null;
		if(this.getMerchant()!=null){
		
 			merchant = Merchant.get(this.getMerchant());
 		
 		}
 		return merchant;
	}
	
 	
	
	
	/*******************************经销商**********************************/	
	/**
	* 经销商       
	**/
	public String getJxs(){
		
		if(this.jxs!=null){
			return this.jxs;
		}
		
		return this.jxs;
	}
	/**
	* 获取经销商格式化(toString)
	**/
	public String getJxs$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getJxs());
	 
	 	 return strValue;
	}
	/**
	* 根据经销商反格式化
	**/
	public void setJxs$(String strValue){
		if(Utils.empty(strValue)){
			this.jxs=null;
			return;
		}
	
	
	 	this.jxs=strValue;
	 
	}
	
	/**
	* 经销商       
	**/
	public void setJxs(String jxs){
		this.jxs = jxs;
		
		this.setSeted(F.jxs);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************订单类型**********************************/	
	/**
	* 订单类型    1:直接购买订单 2:余额提货订单    
	**/
	public Short getOrderType(){
		
		if(this.orderType!=null){
			return this.orderType;
		}
		
		return this.orderType;
	}
	/**
	* 获取订单类型格式化(toString)
	**/
	public String getOrderType$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getOrderType()),"1"))
			strValue=Utils.string("直接购买订单");		 
			
		 if(Utils.equals(Utils.string(this.getOrderType()),"2"))
			strValue=Utils.string("余额提货订单");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据订单类型反格式化
	**/
	public void setOrderType$(String strValue){
		if(Utils.empty(strValue)){
			this.orderType=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"直接购买订单"))
		 	this.orderType=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"余额提货订单"))
		 	this.orderType=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 订单类型    1:直接购买订单 2:余额提货订单    
	**/
	public void setOrderType(Short orderType){
		this.orderType = orderType;
		
		this.setSeted(F.orderType);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************用户编号**********************************/	
	/**
	* 用户编号 [非空]      
	**/
	public Long getUid(){
		
		if(this.uid!=null){
			return this.uid;
		}
		
		Member member = Member.get(this.getMember());
		if(member!=null){
			this.uid=member.getUid();
		}
				
		
		return this.uid;
	}
	/**
	* 获取用户编号格式化(toString)
	**/
	public String getUid$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getUid());
	 
	 	 return strValue;
	}
	/**
	* 根据用户编号反格式化
	**/
	public void setUid$(String strValue){
		if(Utils.empty(strValue)){
			this.uid=null;
			return;
		}
	
	
	 	this.uid=Utils.parseLong(strValue);
	 
	}
	
	/**
	* 用户编号 [非空]      
	**/
	public void setUid(Long uid){
		this.uid = uid;
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************下单人**********************************/	
	/**
	* 下单人       
	**/
	public String getMemberName(){
		
		if(this.memberName!=null){
			return this.memberName;
		}
		
		return this.memberName;
	}
	/**
	* 获取下单人格式化(toString)
	**/
	public String getMemberName$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getMemberName());
	 
	 	 return strValue;
	}
	/**
	* 根据下单人反格式化
	**/
	public void setMemberName$(String strValue){
		if(Utils.empty(strValue)){
			this.memberName=null;
			return;
		}
	
	
	 	this.memberName=strValue;
	 
	}
	
	/**
	* 下单人       
	**/
	public void setMemberName(String memberName){
		this.memberName = memberName;
		
		this.setSeted(F.memberName);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************会员信息**********************************/	
	/**
	* 会员信息 [非空] [Member]     
	**/
	public Long getMember(){
		
		if(this.member!=null){
			return this.member;
		}
		
		return this.member;
	}
	/**
	* 获取会员信息格式化(toString)
	**/
	public String getMember$(){
		String strValue="";
	
	
		 
		if(this.getMember()!=null){
			
				strValue+=Utils.string(Member.getKeyValue(this.getMember()));
			
		}			
		 
	 
	 	 return strValue;
	}
	/**
	* 根据会员信息反格式化
	**/
	public void setMember$(String strValue){
		if(Utils.empty(strValue)){
			this.member=null;
			return;
		}
	
	
		 
		Member item = Member.find(strValue);
		if(item!=null){
			
			this.member = Utils.parseLong(item.getUid());
			
		}
		 
	 
	}
	
	/**
	* 会员信息 [非空] [Member]     
	**/
	public void setMember(Long member){
		this.member = member;
		
		this.setSeted(F.member);
		
	}
	
	
		 
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 		
	/**
	* 获取关联对象[会员信息]
	**/	 			
 	public Member get$member(){
 		if(this.$member!=null)
 			return this.$member;
 		com.distribute.framework.model.Member member = null;
		if(this.getMember()!=null){
		
 			member = Member.get(this.getMember());
 		
 		}
 		return member;
	}
	
 	
	
	
			
	/**
	* 获取与当前对象反向关联的订单明细列表
	* 参数size：要取的个数，-1表示取全部
	**/
	/*public String getDetails(){
		return this.details;
	}*/
	public List<OrderDetails> get$details(){
 		Map params = new HashMap();
		params.put("orders",("")+this.getId());
		return OrderDetails.getOrderDetailsList(params,-1);
 	}
		
	/**
	* 获取订单明细格式化(toString)
	**/
	public String getDetails$(){
		
		
		/************LAZY3Q_FORMAT_details************/
		String str = "";
		for(OrderDetails detail:this.get$details()){
			str+="["+detail.getName$()+":"+detail.getPrice()+"元*"+detail.getNumber$()+"]";
		}
		if(true)return str;
		/************LAZY3Q_FORMAT_details************/
		return "[...]";
		
	}
	
	
	
	/*******************************备注信息**********************************/	
	/**
	* 备注信息       
	**/
	public String getRemarks(){
		
		if(this.remarks!=null){
			return this.remarks;
		}
		
		return this.remarks;
	}
	/**
	* 获取备注信息格式化(toString)
	**/
	public String getRemarks$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getRemarks());
	 
	 	 return strValue;
	}
	/**
	* 根据备注信息反格式化
	**/
	public void setRemarks$(String strValue){
		if(Utils.empty(strValue)){
			this.remarks=null;
			return;
		}
	
	
		this.remarks=strValue;
	 
	}
	
	/**
	* 备注信息       
	**/
	public void setRemarks(String remarks){
		this.remarks = remarks;
		
		this.setSeted(F.remarks);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************物流方式**********************************/	
	/**
	* 物流方式    shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件    
	**/
	public String getLogisMode(){
		
		if(this.logisMode!=null){
			return this.logisMode;
		}
		
		return this.logisMode;
	}
	/**
	* 获取物流方式格式化(toString)
	**/
	public String getLogisMode$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"shunfeng"))
			strValue=Utils.string("顺丰");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"shentong"))
			strValue=Utils.string("申通");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"yuantong"))
			strValue=Utils.string("圆通");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"zhongtong"))
			strValue=Utils.string("中通");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"huitongkuaidi"))
			strValue=Utils.string("百世汇通");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"baishiwuliu"))
			strValue=Utils.string("百世物流");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"yunda"))
			strValue=Utils.string("韵达");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"zhaijisong"))
			strValue=Utils.string("宅急送");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"tiantian"))
			strValue=Utils.string("天天");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"debangwuliu"))
			strValue=Utils.string("德邦");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"guotongkuaidi"))
			strValue=Utils.string("国通");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"zengyisudi"))
			strValue=Utils.string("增益");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"suer"))
			strValue=Utils.string("速尔");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"ztky"))
			strValue=Utils.string("中铁物流");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"zhongtiewuliu"))
			strValue=Utils.string("中铁快运");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"ganzhongnengda"))
			strValue=Utils.string("能达");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"youshuwuliu"))
			strValue=Utils.string("优速");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"quanfengkuaidi"))
			strValue=Utils.string("全峰");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"jd"))
			strValue=Utils.string("京东");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"youzhengguonei"))
			strValue=Utils.string("邮政包裹/平邮");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"youzhengguoji"))
			strValue=Utils.string("国际包裹");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"ems"))
			strValue=Utils.string("EMS");		 
			
		 if(Utils.equals(Utils.string(this.getLogisMode()),"emsguoji"))
			strValue=Utils.string("EMS-国际件");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据物流方式反格式化
	**/
	public void setLogisMode$(String strValue){
		if(Utils.empty(strValue)){
			this.logisMode=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"顺丰"))
		 	this.logisMode=Utils.parseString("shunfeng");
			
		 if(Utils.equals(strValue,"申通"))
		 	this.logisMode=Utils.parseString("shentong");
			
		 if(Utils.equals(strValue,"圆通"))
		 	this.logisMode=Utils.parseString("yuantong");
			
		 if(Utils.equals(strValue,"中通"))
		 	this.logisMode=Utils.parseString("zhongtong");
			
		 if(Utils.equals(strValue,"百世汇通"))
		 	this.logisMode=Utils.parseString("huitongkuaidi");
			
		 if(Utils.equals(strValue,"百世物流"))
		 	this.logisMode=Utils.parseString("baishiwuliu");
			
		 if(Utils.equals(strValue,"韵达"))
		 	this.logisMode=Utils.parseString("yunda");
			
		 if(Utils.equals(strValue,"宅急送"))
		 	this.logisMode=Utils.parseString("zhaijisong");
			
		 if(Utils.equals(strValue,"天天"))
		 	this.logisMode=Utils.parseString("tiantian");
			
		 if(Utils.equals(strValue,"德邦"))
		 	this.logisMode=Utils.parseString("debangwuliu");
			
		 if(Utils.equals(strValue,"国通"))
		 	this.logisMode=Utils.parseString("guotongkuaidi");
			
		 if(Utils.equals(strValue,"增益"))
		 	this.logisMode=Utils.parseString("zengyisudi");
			
		 if(Utils.equals(strValue,"速尔"))
		 	this.logisMode=Utils.parseString("suer");
			
		 if(Utils.equals(strValue,"中铁物流"))
		 	this.logisMode=Utils.parseString("ztky");
			
		 if(Utils.equals(strValue,"中铁快运"))
		 	this.logisMode=Utils.parseString("zhongtiewuliu");
			
		 if(Utils.equals(strValue,"能达"))
		 	this.logisMode=Utils.parseString("ganzhongnengda");
			
		 if(Utils.equals(strValue,"优速"))
		 	this.logisMode=Utils.parseString("youshuwuliu");
			
		 if(Utils.equals(strValue,"全峰"))
		 	this.logisMode=Utils.parseString("quanfengkuaidi");
			
		 if(Utils.equals(strValue,"京东"))
		 	this.logisMode=Utils.parseString("jd");
			
		 if(Utils.equals(strValue,"邮政包裹/平邮"))
		 	this.logisMode=Utils.parseString("youzhengguonei");
			
		 if(Utils.equals(strValue,"国际包裹"))
		 	this.logisMode=Utils.parseString("youzhengguoji");
			
		 if(Utils.equals(strValue,"EMS"))
		 	this.logisMode=Utils.parseString("ems");
			
		 if(Utils.equals(strValue,"EMS-国际件"))
		 	this.logisMode=Utils.parseString("emsguoji");
			
		
	 
	}
	
	/**
	* 物流方式    shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件    
	**/
	public void setLogisMode(String logisMode){
		this.logisMode = logisMode;
		
		this.setSeted(F.logisMode);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************送货地址**********************************/	
	/**
	* 送货地址       
	**/
	public String getAddress(){
		
		if(this.address!=null){
			return this.address;
		}
		
		return this.address;
	}
	/**
	* 获取送货地址格式化(toString)
	**/
	public String getAddress$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getAddress());
	 
	 	 return strValue;
	}
	/**
	* 根据送货地址反格式化
	**/
	public void setAddress$(String strValue){
		if(Utils.empty(strValue)){
			this.address=null;
			return;
		}
	
	
	 	this.address=strValue;
	 
	}
	
	/**
	* 送货地址       
	**/
	public void setAddress(String address){
		this.address = address;
		
		this.setSeted(F.address);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************地址编号**********************************/	
	/**
	* 地址编号       
	**/
	public Long getStreet(){
		
		if(this.street!=null){
			return this.street;
		}
		
		return this.street;
	}
	/**
	* 获取地址编号格式化(toString)
	**/
	public String getStreet$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getStreet());
	 
	 	 return strValue;
	}
	/**
	* 根据地址编号反格式化
	**/
	public void setStreet$(String strValue){
		if(Utils.empty(strValue)){
			this.street=null;
			return;
		}
	
	
	 	this.street=Utils.parseLong(strValue);
	 
	}
	
	/**
	* 地址编号       
	**/
	public void setStreet(Long street){
		this.street = street;
		
		this.setSeted(F.street);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************经度**********************************/	
	/**
	* 经度       
	**/
	public String getLongitude(){
		
		if(this.longitude!=null){
			return this.longitude;
		}
		
		return this.longitude;
	}
	/**
	* 获取经度格式化(toString)
	**/
	public String getLongitude$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getLongitude());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据经度反格式化
	**/
	public void setLongitude$(String strValue){
		if(Utils.empty(strValue)){
			this.longitude=null;
			return;
		}
	
	
			
		 //此处未实现
		 this.longitude=Utils.parseString(strValue);
			
	 
	}
	
	/**
	* 经度       
	**/
	public void setLongitude(String longitude){
		this.longitude = longitude;
		
		this.setSeted(F.longitude);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************纬度**********************************/	
	/**
	* 纬度       
	**/
	public String getLatitude(){
		
		if(this.latitude!=null){
			return this.latitude;
		}
		
		return this.latitude;
	}
	/**
	* 获取纬度格式化(toString)
	**/
	public String getLatitude$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getLatitude());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据纬度反格式化
	**/
	public void setLatitude$(String strValue){
		if(Utils.empty(strValue)){
			this.latitude=null;
			return;
		}
	
	
			
		 //此处未实现
		 this.latitude=Utils.parseString(strValue);
			
	 
	}
	
	/**
	* 纬度       
	**/
	public void setLatitude(String latitude){
		this.latitude = latitude;
		
		this.setSeted(F.latitude);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************所属地区**********************************/	
	/**
	* 所属地区  [Region]     
	**/
	public Long getRegionCity(){
		
		if(this.regionCity!=null){
			return this.regionCity;
		}
		
		return this.regionCity;
	}
	/**
	* 获取所属地区格式化(toString)
	**/
	public String getRegionCity$(){
		String strValue="";
	
	
		 
		if(this.getRegionCity()!=null){
			
				strValue+=Utils.string(Region.getKeyValue(this.getRegionCity()));
			
		}			
		 
	 
	 	 return strValue;
	}
	/**
	* 根据所属地区反格式化
	**/
	public void setRegionCity$(String strValue){
		if(Utils.empty(strValue)){
			this.regionCity=null;
			return;
		}
	
	
		 
		Region item = Region.find(strValue);
		if(item!=null){
			
			this.regionCity = Utils.parseLong(item.getId());
			
		}
		 
	 
	}
	
	/**
	* 所属地区  [Region]     
	**/
	public void setRegionCity(Long regionCity){
		this.regionCity = regionCity;
		
		this.setSeted(F.regionCity);
		
	}
	
	
		 
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 		
	/**
	* 获取关联对象[省市地区]
	**/	 			
 	public Region get$regionCity(){
 		if(this.$regionCity!=null)
 			return this.$regionCity;
 		com.distribute.framework.model.Region region = null;
		if(this.getRegionCity()!=null){
		
 			region = Region.get(this.getRegionCity());
 		
 		}
 		return region;
	}
	
 	
	
	
	/*******************************收货人姓名**********************************/	
	/**
	* 收货人姓名       
	**/
	public String getConsigneeName(){
		
		if(this.consigneeName!=null){
			return this.consigneeName;
		}
		
		return this.consigneeName;
	}
	/**
	* 获取收货人姓名格式化(toString)
	**/
	public String getConsigneeName$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getConsigneeName());
	 
	 	 return strValue;
	}
	/**
	* 根据收货人姓名反格式化
	**/
	public void setConsigneeName$(String strValue){
		if(Utils.empty(strValue)){
			this.consigneeName=null;
			return;
		}
	
	
	 	this.consigneeName=strValue;
	 
	}
	
	/**
	* 收货人姓名       
	**/
	public void setConsigneeName(String consigneeName){
		this.consigneeName = consigneeName;
		
		this.setSeted(F.consigneeName);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************收货电话号**********************************/	
	/**
	* 收货电话号       
	**/
	public String getReceivingTelephoneNumber(){
		
		if(this.receivingTelephoneNumber!=null){
			return this.receivingTelephoneNumber;
		}
		
		return this.receivingTelephoneNumber;
	}
	/**
	* 获取收货电话号格式化(toString)
	**/
	public String getReceivingTelephoneNumber$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getReceivingTelephoneNumber());
	 
	 	 return strValue;
	}
	/**
	* 根据收货电话号反格式化
	**/
	public void setReceivingTelephoneNumber$(String strValue){
		if(Utils.empty(strValue)){
			this.receivingTelephoneNumber=null;
			return;
		}
	
	
	 	this.receivingTelephoneNumber=strValue;
	 
	}
	
	/**
	* 收货电话号       
	**/
	public void setReceivingTelephoneNumber(String receivingTelephoneNumber){
		this.receivingTelephoneNumber = receivingTelephoneNumber;
		
		this.setSeted(F.receivingTelephoneNumber);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************性别**********************************/	
	/**
	* 性别    1:男 2:女    
	**/
	public Short getGender(){
		
		if(this.gender!=null){
			return this.gender;
		}
		
		return this.gender;
	}
	/**
	* 获取性别格式化(toString)
	**/
	public String getGender$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getGender()),"1"))
			strValue=Utils.string("男");		 
			
		 if(Utils.equals(Utils.string(this.getGender()),"2"))
			strValue=Utils.string("女");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据性别反格式化
	**/
	public void setGender$(String strValue){
		if(Utils.empty(strValue)){
			this.gender=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"男"))
		 	this.gender=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"女"))
		 	this.gender=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 性别    1:男 2:女    
	**/
	public void setGender(Short gender){
		this.gender = gender;
		
		this.setSeted(F.gender);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************快递单号**********************************/	
	/**
	* 快递单号       
	**/
	public String getCourier(){
		
		if(this.courier!=null){
			return this.courier;
		}
		
		return this.courier;
	}
	/**
	* 获取快递单号格式化(toString)
	**/
	public String getCourier$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getCourier());
	 
	 	 return strValue;
	}
	/**
	* 根据快递单号反格式化
	**/
	public void setCourier$(String strValue){
		if(Utils.empty(strValue)){
			this.courier=null;
			return;
		}
	
	
	 	this.courier=strValue;
	 
	}
	
	/**
	* 快递单号       
	**/
	public void setCourier(String courier){
		this.courier = courier;
		
		this.setSeted(F.courier);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************配送方式**********************************/	
	/**
	* 配送方式    1:到店自提 2:送货上门    
	**/
	public Short getDistributionMode(){
		
		if(this.distributionMode!=null){
			return this.distributionMode;
		}
		
		return this.distributionMode;
	}
	/**
	* 获取配送方式格式化(toString)
	**/
	public String getDistributionMode$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getDistributionMode()),"1"))
			strValue=Utils.string("到店自提");		 
			
		 if(Utils.equals(Utils.string(this.getDistributionMode()),"2"))
			strValue=Utils.string("送货上门");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据配送方式反格式化
	**/
	public void setDistributionMode$(String strValue){
		if(Utils.empty(strValue)){
			this.distributionMode=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"到店自提"))
		 	this.distributionMode=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"送货上门"))
		 	this.distributionMode=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 配送方式    1:到店自提 2:送货上门    
	**/
	public void setDistributionMode(Short distributionMode){
		this.distributionMode = distributionMode;
		
		this.setSeted(F.distributionMode);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************配送商名称**********************************/	
	/**
	* 配送商名称       
	**/
	public String getDistributorName(){
		
		if(this.distributorName!=null){
			return this.distributorName;
		}
		
		return this.distributorName;
	}
	/**
	* 获取配送商名称格式化(toString)
	**/
	public String getDistributorName$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getDistributorName());
	 
	 	 return strValue;
	}
	/**
	* 根据配送商名称反格式化
	**/
	public void setDistributorName$(String strValue){
		if(Utils.empty(strValue)){
			this.distributorName=null;
			return;
		}
	
	
	 	this.distributorName=strValue;
	 
	}
	
	/**
	* 配送商名称       
	**/
	public void setDistributorName(String distributorName){
		this.distributorName = distributorName;
		
		this.setSeted(F.distributorName);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************配送商**********************************/	
	/**
	* 配送商  [Distributor]     
	**/
	public Long getDistributor(){
		
		if(this.distributor!=null){
			return this.distributor;
		}
		
		return this.distributor;
	}
	/**
	* 获取配送商格式化(toString)
	**/
	public String getDistributor$(){
		String strValue="";
	
	
		 
		if(this.getDistributor()!=null){
			
				strValue+=Utils.string(Distributor.getKeyValue(this.getDistributor()));
			
		}			
		 
	 
	 	 return strValue;
	}
	/**
	* 根据配送商反格式化
	**/
	public void setDistributor$(String strValue){
		if(Utils.empty(strValue)){
			this.distributor=null;
			return;
		}
	
	
		 
		Distributor item = Distributor.find(strValue);
		if(item!=null){
			
			this.distributor = Utils.parseLong(item.getId());
			
		}
		 
	 
	}
	
	/**
	* 配送商  [Distributor]     
	**/
	public void setDistributor(Long distributor){
		this.distributor = distributor;
		
		this.setSeted(F.distributor);
		
	}
	
	
		 
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 		
	/**
	* 获取关联对象[配送商信息]
	**/	 			
 	public Distributor get$distributor(){
 		if(this.$distributor!=null)
 			return this.$distributor;
 		com.distribute.framework.model.Distributor distributor = null;
		if(this.getDistributor()!=null){
		
 			distributor = Distributor.get(this.getDistributor());
 		
 		}
 		return distributor;
	}
	
 	
	
	
	/*******************************配送商收益**********************************/	
	/**
	* 配送商收益       
	**/
	public Double getDistributorIncome(){
		
		if(this.distributorIncome!=null){
			return this.distributorIncome;
		}
		
		return this.distributorIncome;
	}
	/**
	* 获取配送商收益格式化(toString)
	**/
	public String getDistributorIncome$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getDistributorIncome());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据配送商收益反格式化
	**/
	public void setDistributorIncome$(String strValue){
		if(Utils.empty(strValue)){
			this.distributorIncome=null;
			return;
		}
	
	
	 	this.distributorIncome=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 配送商收益       
	**/
	public void setDistributorIncome(Double distributorIncome){
		this.distributorIncome = distributorIncome;
		
		this.setSeted(F.distributorIncome);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************接单类型**********************************/	
	/**
	* 接单类型    1:配送商接单 2:退回品牌总部 3:暂不可接单    
	**/
	public Short getsType(){
		
		if(this.sType!=null){
			return this.sType;
		}
		
		return this.sType;
	}
	/**
	* 获取接单类型格式化(toString)
	**/
	public String getsType$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getsType()),"1"))
			strValue=Utils.string("配送商接单");		 
			
		 if(Utils.equals(Utils.string(this.getsType()),"2"))
			strValue=Utils.string("退回品牌总部");		 
			
		 if(Utils.equals(Utils.string(this.getsType()),"3"))
			strValue=Utils.string("暂不可接单");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据接单类型反格式化
	**/
	public void setsType$(String strValue){
		if(Utils.empty(strValue)){
			this.sType=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"配送商接单"))
		 	this.sType=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"退回品牌总部"))
		 	this.sType=Utils.parseShort("2");
			
		 if(Utils.equals(strValue,"暂不可接单"))
		 	this.sType=Utils.parseShort("3");
			
		
	 
	}
	
	/**
	* 接单类型    1:配送商接单 2:退回品牌总部 3:暂不可接单    
	**/
	public void setsType(Short sType){
		this.sType = sType;
		
		this.setSeted(F.sType);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************自提地址**********************************/	
	/**
	* 自提地址       
	**/
	public String getSelfAddress(){
		
		if(this.selfAddress!=null){
			return this.selfAddress;
		}
		
		return this.selfAddress;
	}
	/**
	* 获取自提地址格式化(toString)
	**/
	public String getSelfAddress$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getSelfAddress());
	 
	 	 return strValue;
	}
	/**
	* 根据自提地址反格式化
	**/
	public void setSelfAddress$(String strValue){
		if(Utils.empty(strValue)){
			this.selfAddress=null;
			return;
		}
	
	
	 	this.selfAddress=strValue;
	 
	}
	
	/**
	* 自提地址       
	**/
	public void setSelfAddress(String selfAddress){
		this.selfAddress = selfAddress;
		
		this.setSeted(F.selfAddress);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************配送费**********************************/	
	/**
	* 配送费       
	**/
	public Double getDispatFee(){
		
		if(this.dispatFee!=null){
			return this.dispatFee;
		}
		
		return this.dispatFee;
	}
	/**
	* 获取配送费格式化(toString)
	**/
	public String getDispatFee$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getDispatFee());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据配送费反格式化
	**/
	public void setDispatFee$(String strValue){
		if(Utils.empty(strValue)){
			this.dispatFee=null;
			return;
		}
	
	
	 	this.dispatFee=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 配送费       
	**/
	public void setDispatFee(Double dispatFee){
		this.dispatFee = dispatFee;
		
		this.setSeted(F.dispatFee);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************使用优惠券**********************************/	
	/**
	* 使用优惠券  [Coupon]     
	**/
	public Long getCoupon(){
		
		if(this.coupon!=null){
			return this.coupon;
		}
		
		return this.coupon;
	}
	/**
	* 获取使用优惠券格式化(toString)
	**/
	public String getCoupon$(){
		String strValue="";
	
	
		 
		if(this.getCoupon()!=null){
			
				strValue+=Utils.string(Coupon.getKeyValue(this.getCoupon()));
			
		}			
		 
	 
	 	 return strValue;
	}
	/**
	* 根据使用优惠券反格式化
	**/
	public void setCoupon$(String strValue){
		if(Utils.empty(strValue)){
			this.coupon=null;
			return;
		}
	
	
		 
		Coupon item = Coupon.find(strValue);
		if(item!=null){
			
			this.coupon = Utils.parseLong(item.getId());
			
		}
		 
	 
	}
	
	/**
	* 使用优惠券  [Coupon]     
	**/
	public void setCoupon(Long coupon){
		this.coupon = coupon;
		
		this.setSeted(F.coupon);
		
	}
	
	
		 
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 		
	/**
	* 获取关联对象[用户优惠券]
	**/	 			
 	public Coupon get$coupon(){
 		if(this.$coupon!=null)
 			return this.$coupon;
 		com.distribute.framework.model.Coupon coupon = null;
		if(this.getCoupon()!=null){
		
 			coupon = Coupon.get(this.getCoupon());
 		
 		}
 		return coupon;
	}
	
 	
	
	
	/*******************************使用产品券**********************************/	
	/**
	* 使用产品券       
	**/
	public String getUseProductVouchers(){
		
		if(this.useProductVouchers!=null){
			return this.useProductVouchers;
		}
		
		return this.useProductVouchers;
	}
	/**
	* 获取使用产品券格式化(toString)
	**/
	public String getUseProductVouchers$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getUseProductVouchers());
	 
	 	 return strValue;
	}
	/**
	* 根据使用产品券反格式化
	**/
	public void setUseProductVouchers$(String strValue){
		if(Utils.empty(strValue)){
			this.useProductVouchers=null;
			return;
		}
	
	
	 	this.useProductVouchers=strValue;
	 
	}
	
	/**
	* 使用产品券       
	**/
	public void setUseProductVouchers(String useProductVouchers){
		this.useProductVouchers = useProductVouchers;
		
		this.setSeted(F.useProductVouchers);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************优惠卷抵扣**********************************/	
	/**
	* 优惠卷抵扣       
	**/
	public Double getCouponFree(){
		
		if(this.couponFree!=null){
			return this.couponFree;
		}
		
		return this.couponFree;
	}
	/**
	* 获取优惠卷抵扣格式化(toString)
	**/
	public String getCouponFree$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getCouponFree());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据优惠卷抵扣反格式化
	**/
	public void setCouponFree$(String strValue){
		if(Utils.empty(strValue)){
			this.couponFree=null;
			return;
		}
	
	
	 	this.couponFree=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 优惠卷抵扣       
	**/
	public void setCouponFree(Double couponFree){
		this.couponFree = couponFree;
		
		this.setSeted(F.couponFree);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************产品卷抵扣**********************************/	
	/**
	* 产品卷抵扣       
	**/
	public Double getProductFree(){
		
		if(this.productFree!=null){
			return this.productFree;
		}
		
		return this.productFree;
	}
	/**
	* 获取产品卷抵扣格式化(toString)
	**/
	public String getProductFree$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getProductFree());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据产品卷抵扣反格式化
	**/
	public void setProductFree$(String strValue){
		if(Utils.empty(strValue)){
			this.productFree=null;
			return;
		}
	
	
	 	this.productFree=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 产品卷抵扣       
	**/
	public void setProductFree(Double productFree){
		this.productFree = productFree;
		
		this.setSeted(F.productFree);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************总金额**********************************/	
	/**
	* 总金额       
	**/
	public Double getTotalSum(){
		
		if(this.totalSum!=null){
			return this.totalSum;
		}
		
		return this.totalSum;
	}
	/**
	* 获取总金额格式化(toString)
	**/
	public String getTotalSum$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getTotalSum());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据总金额反格式化
	**/
	public void setTotalSum$(String strValue){
		if(Utils.empty(strValue)){
			this.totalSum=null;
			return;
		}
	
	
	 	this.totalSum=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 总金额       
	**/
	public void setTotalSum(Double totalSum){
		this.totalSum = totalSum;
		
		this.setSeted(F.totalSum);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************实际支付**********************************/	
	/**
	* 实际支付       
	**/
	public Double getActualPay(){
		
		if(this.actualPay!=null){
			return this.actualPay;
		}
		
		return this.actualPay;
	}
	/**
	* 获取实际支付格式化(toString)
	**/
	public String getActualPay$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getActualPay());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据实际支付反格式化
	**/
	public void setActualPay$(String strValue){
		if(Utils.empty(strValue)){
			this.actualPay=null;
			return;
		}
	
	
	 	this.actualPay=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 实际支付       
	**/
	public void setActualPay(Double actualPay){
		this.actualPay = actualPay;
		
		this.setSeted(F.actualPay);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************支付情况**********************************/	
	/**
	* 支付情况    0:未支付 1:已支付    
	**/
	public Short getPaysStatus(){
		
		if(this.paysStatus!=null){
			return this.paysStatus;
		}
		
		return this.paysStatus;
	}
	/**
	* 获取支付情况格式化(toString)
	**/
	public String getPaysStatus$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getPaysStatus()),"0"))
			strValue=Utils.string("未支付");		 
			
		 if(Utils.equals(Utils.string(this.getPaysStatus()),"1"))
			strValue=Utils.string("已支付");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据支付情况反格式化
	**/
	public void setPaysStatus$(String strValue){
		if(Utils.empty(strValue)){
			this.paysStatus=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"未支付"))
		 	this.paysStatus=Utils.parseShort("0");
			
		 if(Utils.equals(strValue,"已支付"))
		 	this.paysStatus=Utils.parseShort("1");
			
		
	 
	}
	
	/**
	* 支付情况    0:未支付 1:已支付    
	**/
	public void setPaysStatus(Short paysStatus){
		this.paysStatus = paysStatus;
		
		this.setSeted(F.paysStatus);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************支付协议**********************************/	
	/**
	* 支付协议    1:同意 2:不同意    
	**/
	public Short getAgreement(){
		
		if(this.agreement!=null){
			return this.agreement;
		}
		
		return this.agreement;
	}
	/**
	* 获取支付协议格式化(toString)
	**/
	public String getAgreement$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getAgreement()),"1"))
			strValue=Utils.string("同意");		 
			
		 if(Utils.equals(Utils.string(this.getAgreement()),"2"))
			strValue=Utils.string("不同意");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据支付协议反格式化
	**/
	public void setAgreement$(String strValue){
		if(Utils.empty(strValue)){
			this.agreement=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"同意"))
		 	this.agreement=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"不同意"))
		 	this.agreement=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 支付协议    1:同意 2:不同意    
	**/
	public void setAgreement(Short agreement){
		this.agreement = agreement;
		
		this.setSeted(F.agreement);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************实际处理方**********************************/	
	/**
	* 实际处理方    1:待确定 2:品牌总部 3:配送商    
	**/
	public Short getProcessor(){
		
		if(this.processor!=null){
			return this.processor;
		}
		
		return this.processor;
	}
	/**
	* 获取实际处理方格式化(toString)
	**/
	public String getProcessor$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getProcessor()),"1"))
			strValue=Utils.string("待确定");		 
			
		 if(Utils.equals(Utils.string(this.getProcessor()),"2"))
			strValue=Utils.string("品牌总部");		 
			
		 if(Utils.equals(Utils.string(this.getProcessor()),"3"))
			strValue=Utils.string("配送商");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据实际处理方反格式化
	**/
	public void setProcessor$(String strValue){
		if(Utils.empty(strValue)){
			this.processor=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"待确定"))
		 	this.processor=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"品牌总部"))
		 	this.processor=Utils.parseShort("2");
			
		 if(Utils.equals(strValue,"配送商"))
		 	this.processor=Utils.parseShort("3");
			
		
	 
	}
	
	/**
	* 实际处理方    1:待确定 2:品牌总部 3:配送商    
	**/
	public void setProcessor(Short processor){
		this.processor = processor;
		
		this.setSeted(F.processor);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************售后类型**********************************/	
	/**
	* 售后类型    0:暂无 1:投诉 2:退款    
	**/
	public Short getAfterSType(){
		
		if(this.afterSType!=null){
			return this.afterSType;
		}
		
		return this.afterSType;
	}
	/**
	* 获取售后类型格式化(toString)
	**/
	public String getAfterSType$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getAfterSType()),"0"))
			strValue=Utils.string("暂无");		 
			
		 if(Utils.equals(Utils.string(this.getAfterSType()),"1"))
			strValue=Utils.string("投诉");		 
			
		 if(Utils.equals(Utils.string(this.getAfterSType()),"2"))
			strValue=Utils.string("退款");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据售后类型反格式化
	**/
	public void setAfterSType$(String strValue){
		if(Utils.empty(strValue)){
			this.afterSType=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"暂无"))
		 	this.afterSType=Utils.parseShort("0");
			
		 if(Utils.equals(strValue,"投诉"))
		 	this.afterSType=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"退款"))
		 	this.afterSType=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 售后类型    0:暂无 1:投诉 2:退款    
	**/
	public void setAfterSType(Short afterSType){
		this.afterSType = afterSType;
		
		this.setSeted(F.afterSType);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************投诉理由**********************************/	
	/**
	* 投诉理由       
	**/
	public String getComplaint(){
		
		if(this.complaint!=null){
			return this.complaint;
		}
		
		return this.complaint;
	}
	/**
	* 获取投诉理由格式化(toString)
	**/
	public String getComplaint$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getComplaint());
	 
	 	 return strValue;
	}
	/**
	* 根据投诉理由反格式化
	**/
	public void setComplaint$(String strValue){
		if(Utils.empty(strValue)){
			this.complaint=null;
			return;
		}
	
	
		this.complaint=strValue;
	 
	}
	
	/**
	* 投诉理由       
	**/
	public void setComplaint(String complaint){
		this.complaint = complaint;
		
		this.setSeted(F.complaint);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************投诉是处理**********************************/	
	/**
	* 投诉是处理    0:无投诉 1:未处理 2:已处理    
	**/
	public Short getDealted(){
		
		if(this.dealted!=null){
			return this.dealted;
		}
		
		return this.dealted;
	}
	/**
	* 获取投诉是处理格式化(toString)
	**/
	public String getDealted$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getDealted()),"0"))
			strValue=Utils.string("无投诉");		 
			
		 if(Utils.equals(Utils.string(this.getDealted()),"1"))
			strValue=Utils.string("未处理");		 
			
		 if(Utils.equals(Utils.string(this.getDealted()),"2"))
			strValue=Utils.string("已处理");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据投诉是处理反格式化
	**/
	public void setDealted$(String strValue){
		if(Utils.empty(strValue)){
			this.dealted=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"无投诉"))
		 	this.dealted=Utils.parseShort("0");
			
		 if(Utils.equals(strValue,"未处理"))
		 	this.dealted=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"已处理"))
		 	this.dealted=Utils.parseShort("2");
			
		
	 
	}
	
	/**
	* 投诉是处理    0:无投诉 1:未处理 2:已处理    
	**/
	public void setDealted(Short dealted){
		this.dealted = dealted;
		
		this.setSeted(F.dealted);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************退款状态**********************************/	
	/**
	* 退款状态    0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款    
	**/
	public Short getRefundStatus(){
		
		if(this.refundStatus!=null){
			return this.refundStatus;
		}
		
		return this.refundStatus;
	}
	/**
	* 获取退款状态格式化(toString)
	**/
	public String getRefundStatus$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getRefundStatus()),"0"))
			strValue=Utils.string("无");		 
			
		 if(Utils.equals(Utils.string(this.getRefundStatus()),"1"))
			strValue=Utils.string("待审核");		 
			
		 if(Utils.equals(Utils.string(this.getRefundStatus()),"2"))
			strValue=Utils.string("同意退款");		 
			
		 if(Utils.equals(Utils.string(this.getRefundStatus()),"3"))
			strValue=Utils.string("拒绝退款");		 
			
		 if(Utils.equals(Utils.string(this.getRefundStatus()),"4"))
			strValue=Utils.string("已退款");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据退款状态反格式化
	**/
	public void setRefundStatus$(String strValue){
		if(Utils.empty(strValue)){
			this.refundStatus=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"无"))
		 	this.refundStatus=Utils.parseShort("0");
			
		 if(Utils.equals(strValue,"待审核"))
		 	this.refundStatus=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"同意退款"))
		 	this.refundStatus=Utils.parseShort("2");
			
		 if(Utils.equals(strValue,"拒绝退款"))
		 	this.refundStatus=Utils.parseShort("3");
			
		 if(Utils.equals(strValue,"已退款"))
		 	this.refundStatus=Utils.parseShort("4");
			
		
	 
	}
	
	/**
	* 退款状态    0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款    
	**/
	public void setRefundStatus(Short refundStatus){
		this.refundStatus = refundStatus;
		
		this.setSeted(F.refundStatus);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************拒绝退款理由**********************************/	
	/**
	* 拒绝退款理由       
	**/
	public String getRefuseRefund(){
		
		if(this.refuseRefund!=null){
			return this.refuseRefund;
		}
		
		return this.refuseRefund;
	}
	/**
	* 获取拒绝退款理由格式化(toString)
	**/
	public String getRefuseRefund$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getRefuseRefund());
	 
	 	 return strValue;
	}
	/**
	* 根据拒绝退款理由反格式化
	**/
	public void setRefuseRefund$(String strValue){
		if(Utils.empty(strValue)){
			this.refuseRefund=null;
			return;
		}
	
	
		this.refuseRefund=strValue;
	 
	}
	
	/**
	* 拒绝退款理由       
	**/
	public void setRefuseRefund(String refuseRefund){
		this.refuseRefund = refuseRefund;
		
		this.setSeted(F.refuseRefund);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************会员退款理由**********************************/	
	/**
	* 会员退款理由       
	**/
	public String getMeRefundMoney(){
		
		if(this.meRefundMoney!=null){
			return this.meRefundMoney;
		}
		
		return this.meRefundMoney;
	}
	/**
	* 获取会员退款理由格式化(toString)
	**/
	public String getMeRefundMoney$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getMeRefundMoney());
	 
	 	 return strValue;
	}
	/**
	* 根据会员退款理由反格式化
	**/
	public void setMeRefundMoney$(String strValue){
		if(Utils.empty(strValue)){
			this.meRefundMoney=null;
			return;
		}
	
	
		this.meRefundMoney=strValue;
	 
	}
	
	/**
	* 会员退款理由       
	**/
	public void setMeRefundMoney(String meRefundMoney){
		this.meRefundMoney = meRefundMoney;
		
		this.setSeted(F.meRefundMoney);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************formId**********************************/	
	/**
	* formId       
	**/
	public String getDirectoFormid(){
		
		if(this.directoFormid!=null){
			return this.directoFormid;
		}
		
		return this.directoFormid;
	}
	/**
	* 获取formId格式化(toString)
	**/
	public String getDirectoFormid$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getDirectoFormid());
	 
	 	 return strValue;
	}
	/**
	* 根据formId反格式化
	**/
	public void setDirectoFormid$(String strValue){
		if(Utils.empty(strValue)){
			this.directoFormid=null;
			return;
		}
	
	
	 	this.directoFormid=strValue;
	 
	}
	
	/**
	* formId       
	**/
	public void setDirectoFormid(String directoFormid){
		this.directoFormid = directoFormid;
		
		this.setSeted(F.directoFormid);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************接单时间**********************************/	
	/**
	* 接单时间       
	**/
	public Date getGetOrderTime(){
		
		if(this.getOrderTime!=null){
			return this.getOrderTime;
		}
		
		return this.getOrderTime;
	}
	/**
	* 获取接单时间格式化(toString)
	**/
	public String getGetOrderTime$(){
		String strValue="";
	
	
	 	
		 strValue=Utils.string(Utils.date(this.getGetOrderTime(),"yyyy-MM-dd HH:mm:ss"));
		
	 
	 	 return strValue;
	}
	/**
	* 根据接单时间反格式化
	**/
	public void setGetOrderTime$(String strValue){
		if(Utils.empty(strValue)){
			this.getOrderTime=null;
			return;
		}
	
	
	 	this.getOrderTime=Utils.date(strValue,"yyyy-MM-dd HH:mm:ss");
	 
	}
	
	/**
	* 接单时间       
	**/
	public void setGetOrderTime(Date getOrderTime){
		this.getOrderTime = getOrderTime;
		
		this.setSeted(F.getOrderTime);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************打款原因**********************************/	
	/**
	* 打款原因       
	**/
	public String getErroLog(){
		
		if(this.erroLog!=null){
			return this.erroLog;
		}
		
		return this.erroLog;
	}
	/**
	* 获取打款原因格式化(toString)
	**/
	public String getErroLog$(){
		String strValue="";
	
	
		 strValue=Utils.string(this.getErroLog());
	 
	 	 return strValue;
	}
	/**
	* 根据打款原因反格式化
	**/
	public void setErroLog$(String strValue){
		if(Utils.empty(strValue)){
			this.erroLog=null;
			return;
		}
	
	
	 	this.erroLog=strValue;
	 
	}
	
	/**
	* 打款原因       
	**/
	public void setErroLog(String erroLog){
		this.erroLog = erroLog;
		
		this.setSeted(F.erroLog);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************修改时间**********************************/	
	/**
	* 修改时间 [非空]      
	**/
	public Date getUpdateTime(){
		
		if(this.updateTime!=null){
			return this.updateTime;
		}
		
		return this.updateTime;
	}
	/**
	* 获取修改时间格式化(toString)
	**/
	public String getUpdateTime$(){
		String strValue="";
	
	
	 	
		 strValue=Utils.string(Utils.date(this.getUpdateTime(),"yyyy-MM-dd HH:mm:ss"));
		
	 
	 	 return strValue;
	}
	/**
	* 根据修改时间反格式化
	**/
	public void setUpdateTime$(String strValue){
		if(Utils.empty(strValue)){
			this.updateTime=null;
			return;
		}
	
	
	 	this.updateTime=Utils.date(strValue,"yyyy-MM-dd HH:mm:ss");
	 
	}
	
	/**
	* 修改时间 [非空]      
	**/
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
		
		this.setSeted(F.updateTime);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************添加时间**********************************/	
	/**
	* 添加时间 [非空]      
	**/
	public Date getAddTime(){
		
		if(this.addTime!=null){
			return this.addTime;
		}
		
		return this.addTime;
	}
	/**
	* 获取添加时间格式化(toString)
	**/
	public String getAddTime$(){
		String strValue="";
	
	
	 	
		 strValue=Utils.string(Utils.date(this.getAddTime(),"yyyy-MM-dd HH:mm:ss"));
		
	 
	 	 return strValue;
	}
	/**
	* 根据添加时间反格式化
	**/
	public void setAddTime$(String strValue){
		if(Utils.empty(strValue)){
			this.addTime=null;
			return;
		}
	
	
	 	this.addTime=Utils.date(strValue,"yyyy-MM-dd HH:mm:ss");
	 
	}
	
	/**
	* 添加时间 [非空]      
	**/
	public void setAddTime(Date addTime){
		this.addTime = addTime;
		
		this.setSeted(F.addTime);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************状态**********************************/	
	/**
	* 状态 [非空]   1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除    
	**/
	public Short getStatus(){
		
		if(this.status!=null){
			return this.status;
		}
		
		return this.status;
	}
	/**
	* 获取状态格式化(toString)
	**/
	public String getStatus$(){
		String strValue="";
	
	
		
			
		 if(Utils.equals(Utils.string(this.getStatus()),"1"))
			strValue=Utils.string("待支付");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"2"))
			strValue=Utils.string("待发货");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"3"))
			strValue=Utils.string("待收货/自提");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"4"))
			strValue=Utils.string("已收货");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"5"))
			strValue=Utils.string("售后");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"6"))
			strValue=Utils.string("已完成");		 
			
		 if(Utils.equals(Utils.string(this.getStatus()),"7"))
			strValue=Utils.string("已删除");		 
			
		
	 
	 	 return strValue;
	}
	/**
	* 根据状态反格式化
	**/
	public void setStatus$(String strValue){
		if(Utils.empty(strValue)){
			this.status=null;
			return;
		}
	
	
		
			
		 if(Utils.equals(strValue,"待支付"))
		 	this.status=Utils.parseShort("1");
			
		 if(Utils.equals(strValue,"待发货"))
		 	this.status=Utils.parseShort("2");
			
		 if(Utils.equals(strValue,"待收货/自提"))
		 	this.status=Utils.parseShort("3");
			
		 if(Utils.equals(strValue,"已收货"))
		 	this.status=Utils.parseShort("4");
			
		 if(Utils.equals(strValue,"售后"))
		 	this.status=Utils.parseShort("5");
			
		 if(Utils.equals(strValue,"已完成"))
		 	this.status=Utils.parseShort("6");
			
		 if(Utils.equals(strValue,"已删除"))
		 	this.status=Utils.parseShort("7");
			
		
	 
	}
	
	/**
	* 状态 [非空]   1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除    
	**/
	public void setStatus(Short status){
		this.status = status;
		
		this.setSeted(F.status);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	/*******************************抵消**********************************/	
	/**
	* 抵消       
	**/
	public Double getDx(){
		
		if(this.dx!=null){
			return this.dx;
		}
		
		return this.dx;
	}
	/**
	* 获取抵消格式化(toString)
	**/
	public String getDx$(){
		String strValue="";
	
	
			
		 strValue=Utils.string(this.getDx());	
			
	 
	 	 return strValue;
	}
	/**
	* 根据抵消反格式化
	**/
	public void setDx$(String strValue){
		if(Utils.empty(strValue)){
			this.dx=null;
			return;
		}
	
	
	 	this.dx=Utils.parseDouble(strValue);
	 
	}
	
	/**
	* 抵消       
	**/
	public void setDx(Double dx){
		this.dx = dx;
		
		this.setSeted(F.dx);
		
	}
	
	
	
	
	
	
	
	
	
	
 	
 	
	
	
	
	
	
 	
 	
 	
	
	
	
	/************LAZY3Q_DEFINE_CODE************/
	/************LAZY3Q_DEFINE_CODE************/	
	
	
	/**
	 * 触发器
	 */
	public static void on(Trigger.Index index,final Notify.Listener listener,Trigger.Type... types){
		Notify.on(DirectOrder.class, index, listener, types);
	}
	public static void on(final Notify.Listener listener,String type){
		Notify.on(DirectOrder.class, listener, type);
	}
	/**
	 * 当修改字段时
	 * @param filedName
	 * @param listener
	 */
	public static void on(String filedName,final Notify.Listener listener){
		Notify.on(DirectOrder.class, listener, filedName);
	}
	/**
	 * 当修改字段为某值时
	 * @param filedName
	 * @param value
	 * @param listener
	 */
	public static void on(String filedName,Object value,final Notify.Listener listener){
		if(value==null)return;
		Notify.on(DirectOrder.class, listener, filedName+"."+Utils.md5(""+value));
	}
	public void notify(String type){
		Trigger.on(DirectOrder.class,type, this);
	}
	
	
	/**
	 * 用来获取当有字段关联对象时的获取方式,调用如${DirectOrder.obj.filedName}
	 * 因为有些变态的模板语言不能识别$，所以不能以${DirectOrder.$filedName}获取关联对象
	 */
	public Map getObj(){
		return new HashMap(){
			@Override
			public Object get(Object key) {
				try {
					return DirectOrder.class.getMethod("get$"+Utils.forMat(key.toString())).invoke(DirectOrder.this);
				} catch (Exception e) {
					e.printStackTrace();
				}
				return null;
			}
		};
	}
	/**
	 * 用来获取某字段格式化的获取方式,调用如${DirectOrder.fmt.filedName}
	 * 因为有些变态的模板语言不能识别$，所以不能以${DirectOrder.filedName$}获取某字段格式化
	 */
	public Map getFmt(){
		return new HashMap(){
			@Override
			public Object get(Object key) {
				try {
					return DirectOrder.class.getMethod("get"+Utils.ForMat(key.toString()+"$")).invoke(DirectOrder.this);
				} catch (Exception e) {
					e.printStackTrace();
				}
				return null;
			}
		};
	}
	/**
	 * 获取查询参数链式串
	 * @return
	 */
	public static @Deprecated M where(){ return new M(0); }
	public static @Deprecated M m(){ return new M(0); }
	public static M where = new M(0,true);
	public static @database(DatabaseNames.distribute_sys) class M extends IbatisMap{
		int type = 0; 
		M linked = null;
		Boolean proxy = false;
		public M set = null;
		public M(int type){
			this.type = type;
			if(this.type==0){
				set = new M(1,true);
				set.linked = this;
			}
		};
		public M(int type,Boolean proxy){
			this.type = type;
			this.proxy=proxy;
		};
		public M proxy(){
			M m = new M(this.type);//当前的对像
			if(this.type==0){
				m.set = new M(1,true);//set对象
				m.set.linked = m;
			}else{
				m.linked=this.linked;
				this.linked.linked=m;
			}
			return m;
		}
		public @Deprecated M set(){			
			M m = this;
			m.linked=new M(1);
			m.linked.linked=m;
			return m.linked;
		};
		
		public M on(IbatisMap value,C column,String joinColumn){if(proxy)return proxy().on(value,column,joinColumn);this.put(value.getClass().getDeclaringClass().getSimpleName(), value);value.put("on", column.toString());value.put("to", joinColumn);return this;};
		
		
			
		
		/** 编号 [非空]       **/
		public M id(Object id){if(proxy)return proxy().id(id);  this.put("id", id);return this;};
	 	/** and id is null */
 		public M idNull(){if(proxy)return proxy().idNull();if(this.get("idNot")==null)this.put("idNot", "");this.put("id", null);return this;};
 		/** not .... */
 		public M idNot(){if(proxy)return proxy().idNot();this.put("idNot", "not");return this;};
 		public M idNotNull(){if(proxy)return proxy().idNotNull();this.put("idNot", "not");this.put("id", null);return this;};
 		public M idNot(Object id){if(proxy)return proxy().idNot(id);this.put("idNot", "not");this.put("id", id);return this;};
	 		
		/** and id <= ? */
		public M idMin(Object min){if(proxy)return proxy().idMin(min);this.put("idMin", min);return this;};
		/** and id >= ? */
		public M idMax(Object max){if(proxy)return proxy().idMax(max);this.put("idMax", max);return this;};
			
			
		public M idIn(String ids){
			if(proxy)return proxy().idIn(ids);  this.put("idIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 订单号 [非空]       **/
		public M no(Object no){if(proxy)return proxy().no(no);  this.put("no", no);return this;};
	 	/** and no is null */
 		public M noNull(){if(proxy)return proxy().noNull();if(this.get("noNot")==null)this.put("noNot", "");this.put("no", null);return this;};
 		/** not .... */
 		public M noNot(){if(proxy)return proxy().noNot();this.put("noNot", "not");return this;};
 		public M noNotNull(){if(proxy)return proxy().noNotNull();this.put("noNot", "not");this.put("no", null);return this;};
 		public M noNot(Object no){if(proxy)return proxy().noNot(no);this.put("noNot", "not");this.put("no", no);return this;};
	 		
			
		
			
	 	
			
		public M merchant$on(Merchant.M value){if(proxy)return proxy().merchant$on(value);this.put("Merchant", value);value.put("on", "merchant");return this;};
 				
 			
		
		/** 品牌商  [Merchant]      **/
		public M merchant(Object merchant){if(proxy)return proxy().merchant(merchant);  this.put("merchant", merchant);return this;};
	 	/** and merchant is null */
 		public M merchantNull(){if(proxy)return proxy().merchantNull();if(this.get("merchantNot")==null)this.put("merchantNot", "");this.put("merchant", null);return this;};
 		/** not .... */
 		public M merchantNot(){if(proxy)return proxy().merchantNot();this.put("merchantNot", "not");return this;};
 		public M merchantNotNull(){if(proxy)return proxy().merchantNotNull();this.put("merchantNot", "not");this.put("merchant", null);return this;};
 		public M merchantNot(Object merchant){if(proxy)return proxy().merchantNot(merchant);this.put("merchantNot", "not");this.put("merchant", merchant);return this;};
	 		
			
		public M merchantIn(String ids){
			if(proxy)return proxy().merchantIn(ids);  this.put("merchantIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 经销商        **/
		public M jxs(Object jxs){if(proxy)return proxy().jxs(jxs);  this.put("jxs", jxs);return this;};
	 	/** and jxs is null */
 		public M jxsNull(){if(proxy)return proxy().jxsNull();if(this.get("jxsNot")==null)this.put("jxsNot", "");this.put("jxs", null);return this;};
 		/** not .... */
 		public M jxsNot(){if(proxy)return proxy().jxsNot();this.put("jxsNot", "not");return this;};
 		public M jxsNotNull(){if(proxy)return proxy().jxsNotNull();this.put("jxsNot", "not");this.put("jxs", null);return this;};
 		public M jxsNot(Object jxs){if(proxy)return proxy().jxsNot(jxs);this.put("jxsNot", "not");this.put("jxs", jxs);return this;};
	 		
			
		
			
	 	
			
		
		/** 订单类型    1:直接购买订单 2:余额提货订单     **/
		public M orderType(Object orderType){if(proxy)return proxy().orderType(orderType);  this.put("orderType", orderType);return this;};
	 	/** and order_type is null */
 		public M orderTypeNull(){if(proxy)return proxy().orderTypeNull();if(this.get("orderTypeNot")==null)this.put("orderTypeNot", "");this.put("orderType", null);return this;};
 		/** not .... */
 		public M orderTypeNot(){if(proxy)return proxy().orderTypeNot();this.put("orderTypeNot", "not");return this;};
 		public M orderTypeNotNull(){if(proxy)return proxy().orderTypeNotNull();this.put("orderTypeNot", "not");this.put("orderType", null);return this;};
 		public M orderTypeNot(Object orderType){if(proxy)return proxy().orderTypeNot(orderType);this.put("orderTypeNot", "not");this.put("orderType", orderType);return this;};
	 		
			
		public M orderTypeIn(String ids){
			if(proxy)return proxy().orderTypeIn(ids);  this.put("orderTypeIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 用户编号 [非空]       **/
		public M uid(Object uid){if(proxy)return proxy().uid(uid);  this.put("uid", uid);return this;};
	 	/** and uid is null */
 		public M uidNull(){if(proxy)return proxy().uidNull();if(this.get("uidNot")==null)this.put("uidNot", "");this.put("uid", null);return this;};
 		/** not .... */
 		public M uidNot(){if(proxy)return proxy().uidNot();this.put("uidNot", "not");return this;};
 		public M uidNotNull(){if(proxy)return proxy().uidNotNull();this.put("uidNot", "not");this.put("uid", null);return this;};
 		public M uidNot(Object uid){if(proxy)return proxy().uidNot(uid);this.put("uidNot", "not");this.put("uid", uid);return this;};
	 		
		/** and uid <= ? */
		public M uidMin(Object min){if(proxy)return proxy().uidMin(min);this.put("uidMin", min);return this;};
		/** and uid >= ? */
		public M uidMax(Object max){if(proxy)return proxy().uidMax(max);this.put("uidMax", max);return this;};
			
			
		public M uidIn(String ids){
			if(proxy)return proxy().uidIn(ids);  this.put("uidIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 下单人        **/
		public M memberName(Object memberName){if(proxy)return proxy().memberName(memberName);  this.put("memberName", memberName);return this;};
	 	/** and member_name is null */
 		public M memberNameNull(){if(proxy)return proxy().memberNameNull();if(this.get("memberNameNot")==null)this.put("memberNameNot", "");this.put("memberName", null);return this;};
 		/** not .... */
 		public M memberNameNot(){if(proxy)return proxy().memberNameNot();this.put("memberNameNot", "not");return this;};
 		public M memberNameNotNull(){if(proxy)return proxy().memberNameNotNull();this.put("memberNameNot", "not");this.put("memberName", null);return this;};
 		public M memberNameNot(Object memberName){if(proxy)return proxy().memberNameNot(memberName);this.put("memberNameNot", "not");this.put("memberName", memberName);return this;};
	 		
			
		
			
	 	
			
		public M member$on(Member.M value){if(proxy)return proxy().member$on(value);this.put("Member", value);value.put("on", "member");return this;};
 				
 			
		
		/** 会员信息 [非空] [Member]      **/
		public M member(Object member){if(proxy)return proxy().member(member);  this.put("member", member);return this;};
	 	/** and member is null */
 		public M memberNull(){if(proxy)return proxy().memberNull();if(this.get("memberNot")==null)this.put("memberNot", "");this.put("member", null);return this;};
 		/** not .... */
 		public M memberNot(){if(proxy)return proxy().memberNot();this.put("memberNot", "not");return this;};
 		public M memberNotNull(){if(proxy)return proxy().memberNotNull();this.put("memberNot", "not");this.put("member", null);return this;};
 		public M memberNot(Object member){if(proxy)return proxy().memberNot(member);this.put("memberNot", "not");this.put("member", member);return this;};
	 		
			
		public M memberIn(String ids){
			if(proxy)return proxy().memberIn(ids);  this.put("memberIn", ids);return this;
		};	
 			
		
			
	 	
			
		public M details$on(OrderDetails.M value){if(proxy)return proxy().details$on(value);this.put("Details", value);value.put("on", "orders");return this;};
 				
		public M details(Object details){if(proxy)return proxy().details(details);  this.details$on(OrderDetails.where.id(details));return this;};
	 			
 			
		
			
	 	
			
		
		/** 备注信息        **/
		public M remarks(Object remarks){if(proxy)return proxy().remarks(remarks);  this.put("remarks", remarks);return this;};
	 	/** and remarks is null */
 		public M remarksNull(){if(proxy)return proxy().remarksNull();if(this.get("remarksNot")==null)this.put("remarksNot", "");this.put("remarks", null);return this;};
 		/** not .... */
 		public M remarksNot(){if(proxy)return proxy().remarksNot();this.put("remarksNot", "not");return this;};
 		public M remarksNotNull(){if(proxy)return proxy().remarksNotNull();this.put("remarksNot", "not");this.put("remarks", null);return this;};
 		public M remarksNot(Object remarks){if(proxy)return proxy().remarksNot(remarks);this.put("remarksNot", "not");this.put("remarks", remarks);return this;};
	 		
			
		
			
	 	
			
		
		/** 物流方式    shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件     **/
		public M logisMode(Object logisMode){if(proxy)return proxy().logisMode(logisMode);  this.put("logisMode", logisMode);return this;};
	 	/** and logis_mode is null */
 		public M logisModeNull(){if(proxy)return proxy().logisModeNull();if(this.get("logisModeNot")==null)this.put("logisModeNot", "");this.put("logisMode", null);return this;};
 		/** not .... */
 		public M logisModeNot(){if(proxy)return proxy().logisModeNot();this.put("logisModeNot", "not");return this;};
 		public M logisModeNotNull(){if(proxy)return proxy().logisModeNotNull();this.put("logisModeNot", "not");this.put("logisMode", null);return this;};
 		public M logisModeNot(Object logisMode){if(proxy)return proxy().logisModeNot(logisMode);this.put("logisModeNot", "not");this.put("logisMode", logisMode);return this;};
	 		
			
		
			
	 	
			
		
		/** 送货地址        **/
		public M address(Object address){if(proxy)return proxy().address(address);  this.put("address", address);return this;};
	 	/** and address is null */
 		public M addressNull(){if(proxy)return proxy().addressNull();if(this.get("addressNot")==null)this.put("addressNot", "");this.put("address", null);return this;};
 		/** not .... */
 		public M addressNot(){if(proxy)return proxy().addressNot();this.put("addressNot", "not");return this;};
 		public M addressNotNull(){if(proxy)return proxy().addressNotNull();this.put("addressNot", "not");this.put("address", null);return this;};
 		public M addressNot(Object address){if(proxy)return proxy().addressNot(address);this.put("addressNot", "not");this.put("address", address);return this;};
	 		
			
		
			
	 	
			
		
		/** 地址编号        **/
		public M street(Object street){if(proxy)return proxy().street(street);  this.put("street", street);return this;};
	 	/** and street is null */
 		public M streetNull(){if(proxy)return proxy().streetNull();if(this.get("streetNot")==null)this.put("streetNot", "");this.put("street", null);return this;};
 		/** not .... */
 		public M streetNot(){if(proxy)return proxy().streetNot();this.put("streetNot", "not");return this;};
 		public M streetNotNull(){if(proxy)return proxy().streetNotNull();this.put("streetNot", "not");this.put("street", null);return this;};
 		public M streetNot(Object street){if(proxy)return proxy().streetNot(street);this.put("streetNot", "not");this.put("street", street);return this;};
	 		
		/** and street <= ? */
		public M streetMin(Object min){if(proxy)return proxy().streetMin(min);this.put("streetMin", min);return this;};
		/** and street >= ? */
		public M streetMax(Object max){if(proxy)return proxy().streetMax(max);this.put("streetMax", max);return this;};
			
			
		public M streetIn(String ids){
			if(proxy)return proxy().streetIn(ids);  this.put("streetIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 经度        **/
		public M longitude(Object longitude){if(proxy)return proxy().longitude(longitude);  this.put("longitude", longitude);return this;};
	 	/** and longitude is null */
 		public M longitudeNull(){if(proxy)return proxy().longitudeNull();if(this.get("longitudeNot")==null)this.put("longitudeNot", "");this.put("longitude", null);return this;};
 		/** not .... */
 		public M longitudeNot(){if(proxy)return proxy().longitudeNot();this.put("longitudeNot", "not");return this;};
 		public M longitudeNotNull(){if(proxy)return proxy().longitudeNotNull();this.put("longitudeNot", "not");this.put("longitude", null);return this;};
 		public M longitudeNot(Object longitude){if(proxy)return proxy().longitudeNot(longitude);this.put("longitudeNot", "not");this.put("longitude", longitude);return this;};
	 		
			
		
			
	 	
			
		
		/** 纬度        **/
		public M latitude(Object latitude){if(proxy)return proxy().latitude(latitude);  this.put("latitude", latitude);return this;};
	 	/** and latitude is null */
 		public M latitudeNull(){if(proxy)return proxy().latitudeNull();if(this.get("latitudeNot")==null)this.put("latitudeNot", "");this.put("latitude", null);return this;};
 		/** not .... */
 		public M latitudeNot(){if(proxy)return proxy().latitudeNot();this.put("latitudeNot", "not");return this;};
 		public M latitudeNotNull(){if(proxy)return proxy().latitudeNotNull();this.put("latitudeNot", "not");this.put("latitude", null);return this;};
 		public M latitudeNot(Object latitude){if(proxy)return proxy().latitudeNot(latitude);this.put("latitudeNot", "not");this.put("latitude", latitude);return this;};
	 		
			
		
			
	 	
			
		public M regionCity$on(Region.M value){if(proxy)return proxy().regionCity$on(value);this.put("RegionCity", value);value.put("on", "region_city");return this;};
 				
 			
		
		/** 所属地区  [Region]      **/
		public M regionCity(Object regionCity){if(proxy)return proxy().regionCity(regionCity);  this.put("regionCity", regionCity);return this;};
	 	/** and region_city is null */
 		public M regionCityNull(){if(proxy)return proxy().regionCityNull();if(this.get("regionCityNot")==null)this.put("regionCityNot", "");this.put("regionCity", null);return this;};
 		/** not .... */
 		public M regionCityNot(){if(proxy)return proxy().regionCityNot();this.put("regionCityNot", "not");return this;};
 		public M regionCityNotNull(){if(proxy)return proxy().regionCityNotNull();this.put("regionCityNot", "not");this.put("regionCity", null);return this;};
 		public M regionCityNot(Object regionCity){if(proxy)return proxy().regionCityNot(regionCity);this.put("regionCityNot", "not");this.put("regionCity", regionCity);return this;};
	 		
			
		public M regionCityIn(String ids){
			if(proxy)return proxy().regionCityIn(ids);  this.put("regionCityIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 收货人姓名        **/
		public M consigneeName(Object consigneeName){if(proxy)return proxy().consigneeName(consigneeName);  this.put("consigneeName", consigneeName);return this;};
	 	/** and consignee_name is null */
 		public M consigneeNameNull(){if(proxy)return proxy().consigneeNameNull();if(this.get("consigneeNameNot")==null)this.put("consigneeNameNot", "");this.put("consigneeName", null);return this;};
 		/** not .... */
 		public M consigneeNameNot(){if(proxy)return proxy().consigneeNameNot();this.put("consigneeNameNot", "not");return this;};
 		public M consigneeNameNotNull(){if(proxy)return proxy().consigneeNameNotNull();this.put("consigneeNameNot", "not");this.put("consigneeName", null);return this;};
 		public M consigneeNameNot(Object consigneeName){if(proxy)return proxy().consigneeNameNot(consigneeName);this.put("consigneeNameNot", "not");this.put("consigneeName", consigneeName);return this;};
	 		
			
		
			
	 	
			
		
		/** 收货电话号        **/
		public M receivingTelephoneNumber(Object receivingTelephoneNumber){if(proxy)return proxy().receivingTelephoneNumber(receivingTelephoneNumber);  this.put("receivingTelephoneNumber", receivingTelephoneNumber);return this;};
	 	/** and receiving_telephone_number is null */
 		public M receivingTelephoneNumberNull(){if(proxy)return proxy().receivingTelephoneNumberNull();if(this.get("receivingTelephoneNumberNot")==null)this.put("receivingTelephoneNumberNot", "");this.put("receivingTelephoneNumber", null);return this;};
 		/** not .... */
 		public M receivingTelephoneNumberNot(){if(proxy)return proxy().receivingTelephoneNumberNot();this.put("receivingTelephoneNumberNot", "not");return this;};
 		public M receivingTelephoneNumberNotNull(){if(proxy)return proxy().receivingTelephoneNumberNotNull();this.put("receivingTelephoneNumberNot", "not");this.put("receivingTelephoneNumber", null);return this;};
 		public M receivingTelephoneNumberNot(Object receivingTelephoneNumber){if(proxy)return proxy().receivingTelephoneNumberNot(receivingTelephoneNumber);this.put("receivingTelephoneNumberNot", "not");this.put("receivingTelephoneNumber", receivingTelephoneNumber);return this;};
	 		
			
		
			
	 	
			
		
		/** 性别    1:男 2:女     **/
		public M gender(Object gender){if(proxy)return proxy().gender(gender);  this.put("gender", gender);return this;};
	 	/** and gender is null */
 		public M genderNull(){if(proxy)return proxy().genderNull();if(this.get("genderNot")==null)this.put("genderNot", "");this.put("gender", null);return this;};
 		/** not .... */
 		public M genderNot(){if(proxy)return proxy().genderNot();this.put("genderNot", "not");return this;};
 		public M genderNotNull(){if(proxy)return proxy().genderNotNull();this.put("genderNot", "not");this.put("gender", null);return this;};
 		public M genderNot(Object gender){if(proxy)return proxy().genderNot(gender);this.put("genderNot", "not");this.put("gender", gender);return this;};
	 		
			
		public M genderIn(String ids){
			if(proxy)return proxy().genderIn(ids);  this.put("genderIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 快递单号        **/
		public M courier(Object courier){if(proxy)return proxy().courier(courier);  this.put("courier", courier);return this;};
	 	/** and courier is null */
 		public M courierNull(){if(proxy)return proxy().courierNull();if(this.get("courierNot")==null)this.put("courierNot", "");this.put("courier", null);return this;};
 		/** not .... */
 		public M courierNot(){if(proxy)return proxy().courierNot();this.put("courierNot", "not");return this;};
 		public M courierNotNull(){if(proxy)return proxy().courierNotNull();this.put("courierNot", "not");this.put("courier", null);return this;};
 		public M courierNot(Object courier){if(proxy)return proxy().courierNot(courier);this.put("courierNot", "not");this.put("courier", courier);return this;};
	 		
			
		
			
	 	
			
		
		/** 配送方式    1:到店自提 2:送货上门     **/
		public M distributionMode(Object distributionMode){if(proxy)return proxy().distributionMode(distributionMode);  this.put("distributionMode", distributionMode);return this;};
	 	/** and distribution_mode is null */
 		public M distributionModeNull(){if(proxy)return proxy().distributionModeNull();if(this.get("distributionModeNot")==null)this.put("distributionModeNot", "");this.put("distributionMode", null);return this;};
 		/** not .... */
 		public M distributionModeNot(){if(proxy)return proxy().distributionModeNot();this.put("distributionModeNot", "not");return this;};
 		public M distributionModeNotNull(){if(proxy)return proxy().distributionModeNotNull();this.put("distributionModeNot", "not");this.put("distributionMode", null);return this;};
 		public M distributionModeNot(Object distributionMode){if(proxy)return proxy().distributionModeNot(distributionMode);this.put("distributionModeNot", "not");this.put("distributionMode", distributionMode);return this;};
	 		
			
		public M distributionModeIn(String ids){
			if(proxy)return proxy().distributionModeIn(ids);  this.put("distributionModeIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 配送商名称        **/
		public M distributorName(Object distributorName){if(proxy)return proxy().distributorName(distributorName);  this.put("distributorName", distributorName);return this;};
	 	/** and distributor_name is null */
 		public M distributorNameNull(){if(proxy)return proxy().distributorNameNull();if(this.get("distributorNameNot")==null)this.put("distributorNameNot", "");this.put("distributorName", null);return this;};
 		/** not .... */
 		public M distributorNameNot(){if(proxy)return proxy().distributorNameNot();this.put("distributorNameNot", "not");return this;};
 		public M distributorNameNotNull(){if(proxy)return proxy().distributorNameNotNull();this.put("distributorNameNot", "not");this.put("distributorName", null);return this;};
 		public M distributorNameNot(Object distributorName){if(proxy)return proxy().distributorNameNot(distributorName);this.put("distributorNameNot", "not");this.put("distributorName", distributorName);return this;};
	 		
			
		
			
	 	
			
		public M distributor$on(Distributor.M value){if(proxy)return proxy().distributor$on(value);this.put("Distributor", value);value.put("on", "distributor");return this;};
 				
 			
		
		/** 配送商  [Distributor]      **/
		public M distributor(Object distributor){if(proxy)return proxy().distributor(distributor);  this.put("distributor", distributor);return this;};
	 	/** and distributor is null */
 		public M distributorNull(){if(proxy)return proxy().distributorNull();if(this.get("distributorNot")==null)this.put("distributorNot", "");this.put("distributor", null);return this;};
 		/** not .... */
 		public M distributorNot(){if(proxy)return proxy().distributorNot();this.put("distributorNot", "not");return this;};
 		public M distributorNotNull(){if(proxy)return proxy().distributorNotNull();this.put("distributorNot", "not");this.put("distributor", null);return this;};
 		public M distributorNot(Object distributor){if(proxy)return proxy().distributorNot(distributor);this.put("distributorNot", "not");this.put("distributor", distributor);return this;};
	 		
			
		public M distributorIn(String ids){
			if(proxy)return proxy().distributorIn(ids);  this.put("distributorIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 配送商收益        **/
		public M distributorIncome(Object distributorIncome){if(proxy)return proxy().distributorIncome(distributorIncome);  this.put("distributorIncome", distributorIncome);return this;};
	 	/** and distributor_income is null */
 		public M distributorIncomeNull(){if(proxy)return proxy().distributorIncomeNull();if(this.get("distributorIncomeNot")==null)this.put("distributorIncomeNot", "");this.put("distributorIncome", null);return this;};
 		/** not .... */
 		public M distributorIncomeNot(){if(proxy)return proxy().distributorIncomeNot();this.put("distributorIncomeNot", "not");return this;};
 		public M distributorIncomeNotNull(){if(proxy)return proxy().distributorIncomeNotNull();this.put("distributorIncomeNot", "not");this.put("distributorIncome", null);return this;};
 		public M distributorIncomeNot(Object distributorIncome){if(proxy)return proxy().distributorIncomeNot(distributorIncome);this.put("distributorIncomeNot", "not");this.put("distributorIncome", distributorIncome);return this;};
	 		
		/** and distributor_income <= ? */
		public M distributorIncomeMin(Object min){if(proxy)return proxy().distributorIncomeMin(min);this.put("distributorIncomeMin", min);return this;};
		/** and distributor_income >= ? */
		public M distributorIncomeMax(Object max){if(proxy)return proxy().distributorIncomeMax(max);this.put("distributorIncomeMax", max);return this;};
			
			
		
			
	 	
			
		
		/** 接单类型    1:配送商接单 2:退回品牌总部 3:暂不可接单     **/
		public M sType(Object sType){if(proxy)return proxy().sType(sType);  this.put("sType", sType);return this;};
	 	/** and s_type is null */
 		public M sTypeNull(){if(proxy)return proxy().sTypeNull();if(this.get("sTypeNot")==null)this.put("sTypeNot", "");this.put("sType", null);return this;};
 		/** not .... */
 		public M sTypeNot(){if(proxy)return proxy().sTypeNot();this.put("sTypeNot", "not");return this;};
 		public M sTypeNotNull(){if(proxy)return proxy().sTypeNotNull();this.put("sTypeNot", "not");this.put("sType", null);return this;};
 		public M sTypeNot(Object sType){if(proxy)return proxy().sTypeNot(sType);this.put("sTypeNot", "not");this.put("sType", sType);return this;};
	 		
			
		public M sTypeIn(String ids){
			if(proxy)return proxy().sTypeIn(ids);  this.put("sTypeIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 自提地址        **/
		public M selfAddress(Object selfAddress){if(proxy)return proxy().selfAddress(selfAddress);  this.put("selfAddress", selfAddress);return this;};
	 	/** and self_address is null */
 		public M selfAddressNull(){if(proxy)return proxy().selfAddressNull();if(this.get("selfAddressNot")==null)this.put("selfAddressNot", "");this.put("selfAddress", null);return this;};
 		/** not .... */
 		public M selfAddressNot(){if(proxy)return proxy().selfAddressNot();this.put("selfAddressNot", "not");return this;};
 		public M selfAddressNotNull(){if(proxy)return proxy().selfAddressNotNull();this.put("selfAddressNot", "not");this.put("selfAddress", null);return this;};
 		public M selfAddressNot(Object selfAddress){if(proxy)return proxy().selfAddressNot(selfAddress);this.put("selfAddressNot", "not");this.put("selfAddress", selfAddress);return this;};
	 		
			
		
			
	 	
			
		
		/** 配送费        **/
		public M dispatFee(Object dispatFee){if(proxy)return proxy().dispatFee(dispatFee);  this.put("dispatFee", dispatFee);return this;};
	 	/** and dispat_fee is null */
 		public M dispatFeeNull(){if(proxy)return proxy().dispatFeeNull();if(this.get("dispatFeeNot")==null)this.put("dispatFeeNot", "");this.put("dispatFee", null);return this;};
 		/** not .... */
 		public M dispatFeeNot(){if(proxy)return proxy().dispatFeeNot();this.put("dispatFeeNot", "not");return this;};
 		public M dispatFeeNotNull(){if(proxy)return proxy().dispatFeeNotNull();this.put("dispatFeeNot", "not");this.put("dispatFee", null);return this;};
 		public M dispatFeeNot(Object dispatFee){if(proxy)return proxy().dispatFeeNot(dispatFee);this.put("dispatFeeNot", "not");this.put("dispatFee", dispatFee);return this;};
	 		
		/** and dispat_fee <= ? */
		public M dispatFeeMin(Object min){if(proxy)return proxy().dispatFeeMin(min);this.put("dispatFeeMin", min);return this;};
		/** and dispat_fee >= ? */
		public M dispatFeeMax(Object max){if(proxy)return proxy().dispatFeeMax(max);this.put("dispatFeeMax", max);return this;};
			
			
		
			
	 	
			
		public M coupon$on(Coupon.M value){if(proxy)return proxy().coupon$on(value);this.put("Coupon", value);value.put("on", "coupon");return this;};
 				
 			
		
		/** 使用优惠券  [Coupon]      **/
		public M coupon(Object coupon){if(proxy)return proxy().coupon(coupon);  this.put("coupon", coupon);return this;};
	 	/** and coupon is null */
 		public M couponNull(){if(proxy)return proxy().couponNull();if(this.get("couponNot")==null)this.put("couponNot", "");this.put("coupon", null);return this;};
 		/** not .... */
 		public M couponNot(){if(proxy)return proxy().couponNot();this.put("couponNot", "not");return this;};
 		public M couponNotNull(){if(proxy)return proxy().couponNotNull();this.put("couponNot", "not");this.put("coupon", null);return this;};
 		public M couponNot(Object coupon){if(proxy)return proxy().couponNot(coupon);this.put("couponNot", "not");this.put("coupon", coupon);return this;};
	 		
			
		public M couponIn(String ids){
			if(proxy)return proxy().couponIn(ids);  this.put("couponIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 使用产品券        **/
		public M useProductVouchers(Object useProductVouchers){if(proxy)return proxy().useProductVouchers(useProductVouchers);  this.put("useProductVouchers", useProductVouchers);return this;};
	 	/** and use_product_vouchers is null */
 		public M useProductVouchersNull(){if(proxy)return proxy().useProductVouchersNull();if(this.get("useProductVouchersNot")==null)this.put("useProductVouchersNot", "");this.put("useProductVouchers", null);return this;};
 		/** not .... */
 		public M useProductVouchersNot(){if(proxy)return proxy().useProductVouchersNot();this.put("useProductVouchersNot", "not");return this;};
 		public M useProductVouchersNotNull(){if(proxy)return proxy().useProductVouchersNotNull();this.put("useProductVouchersNot", "not");this.put("useProductVouchers", null);return this;};
 		public M useProductVouchersNot(Object useProductVouchers){if(proxy)return proxy().useProductVouchersNot(useProductVouchers);this.put("useProductVouchersNot", "not");this.put("useProductVouchers", useProductVouchers);return this;};
	 		
			
		
			
	 	
			
		
		/** 优惠卷抵扣        **/
		public M couponFree(Object couponFree){if(proxy)return proxy().couponFree(couponFree);  this.put("couponFree", couponFree);return this;};
	 	/** and coupon_free is null */
 		public M couponFreeNull(){if(proxy)return proxy().couponFreeNull();if(this.get("couponFreeNot")==null)this.put("couponFreeNot", "");this.put("couponFree", null);return this;};
 		/** not .... */
 		public M couponFreeNot(){if(proxy)return proxy().couponFreeNot();this.put("couponFreeNot", "not");return this;};
 		public M couponFreeNotNull(){if(proxy)return proxy().couponFreeNotNull();this.put("couponFreeNot", "not");this.put("couponFree", null);return this;};
 		public M couponFreeNot(Object couponFree){if(proxy)return proxy().couponFreeNot(couponFree);this.put("couponFreeNot", "not");this.put("couponFree", couponFree);return this;};
	 		
		/** and coupon_free <= ? */
		public M couponFreeMin(Object min){if(proxy)return proxy().couponFreeMin(min);this.put("couponFreeMin", min);return this;};
		/** and coupon_free >= ? */
		public M couponFreeMax(Object max){if(proxy)return proxy().couponFreeMax(max);this.put("couponFreeMax", max);return this;};
			
			
		
			
	 	
			
		
		/** 产品卷抵扣        **/
		public M productFree(Object productFree){if(proxy)return proxy().productFree(productFree);  this.put("productFree", productFree);return this;};
	 	/** and product_free is null */
 		public M productFreeNull(){if(proxy)return proxy().productFreeNull();if(this.get("productFreeNot")==null)this.put("productFreeNot", "");this.put("productFree", null);return this;};
 		/** not .... */
 		public M productFreeNot(){if(proxy)return proxy().productFreeNot();this.put("productFreeNot", "not");return this;};
 		public M productFreeNotNull(){if(proxy)return proxy().productFreeNotNull();this.put("productFreeNot", "not");this.put("productFree", null);return this;};
 		public M productFreeNot(Object productFree){if(proxy)return proxy().productFreeNot(productFree);this.put("productFreeNot", "not");this.put("productFree", productFree);return this;};
	 		
		/** and product_free <= ? */
		public M productFreeMin(Object min){if(proxy)return proxy().productFreeMin(min);this.put("productFreeMin", min);return this;};
		/** and product_free >= ? */
		public M productFreeMax(Object max){if(proxy)return proxy().productFreeMax(max);this.put("productFreeMax", max);return this;};
			
			
		
			
	 	
			
		
		/** 总金额        **/
		public M totalSum(Object totalSum){if(proxy)return proxy().totalSum(totalSum);  this.put("totalSum", totalSum);return this;};
	 	/** and total_sum is null */
 		public M totalSumNull(){if(proxy)return proxy().totalSumNull();if(this.get("totalSumNot")==null)this.put("totalSumNot", "");this.put("totalSum", null);return this;};
 		/** not .... */
 		public M totalSumNot(){if(proxy)return proxy().totalSumNot();this.put("totalSumNot", "not");return this;};
 		public M totalSumNotNull(){if(proxy)return proxy().totalSumNotNull();this.put("totalSumNot", "not");this.put("totalSum", null);return this;};
 		public M totalSumNot(Object totalSum){if(proxy)return proxy().totalSumNot(totalSum);this.put("totalSumNot", "not");this.put("totalSum", totalSum);return this;};
	 		
		/** and total_sum <= ? */
		public M totalSumMin(Object min){if(proxy)return proxy().totalSumMin(min);this.put("totalSumMin", min);return this;};
		/** and total_sum >= ? */
		public M totalSumMax(Object max){if(proxy)return proxy().totalSumMax(max);this.put("totalSumMax", max);return this;};
			
			
		
			
	 	
			
		
		/** 实际支付        **/
		public M actualPay(Object actualPay){if(proxy)return proxy().actualPay(actualPay);  this.put("actualPay", actualPay);return this;};
	 	/** and actual_pay is null */
 		public M actualPayNull(){if(proxy)return proxy().actualPayNull();if(this.get("actualPayNot")==null)this.put("actualPayNot", "");this.put("actualPay", null);return this;};
 		/** not .... */
 		public M actualPayNot(){if(proxy)return proxy().actualPayNot();this.put("actualPayNot", "not");return this;};
 		public M actualPayNotNull(){if(proxy)return proxy().actualPayNotNull();this.put("actualPayNot", "not");this.put("actualPay", null);return this;};
 		public M actualPayNot(Object actualPay){if(proxy)return proxy().actualPayNot(actualPay);this.put("actualPayNot", "not");this.put("actualPay", actualPay);return this;};
	 		
		/** and actual_pay <= ? */
		public M actualPayMin(Object min){if(proxy)return proxy().actualPayMin(min);this.put("actualPayMin", min);return this;};
		/** and actual_pay >= ? */
		public M actualPayMax(Object max){if(proxy)return proxy().actualPayMax(max);this.put("actualPayMax", max);return this;};
			
			
		
			
	 	
			
		
		/** 支付情况    0:未支付 1:已支付     **/
		public M paysStatus(Object paysStatus){if(proxy)return proxy().paysStatus(paysStatus);  this.put("paysStatus", paysStatus);return this;};
	 	/** and pays_status is null */
 		public M paysStatusNull(){if(proxy)return proxy().paysStatusNull();if(this.get("paysStatusNot")==null)this.put("paysStatusNot", "");this.put("paysStatus", null);return this;};
 		/** not .... */
 		public M paysStatusNot(){if(proxy)return proxy().paysStatusNot();this.put("paysStatusNot", "not");return this;};
 		public M paysStatusNotNull(){if(proxy)return proxy().paysStatusNotNull();this.put("paysStatusNot", "not");this.put("paysStatus", null);return this;};
 		public M paysStatusNot(Object paysStatus){if(proxy)return proxy().paysStatusNot(paysStatus);this.put("paysStatusNot", "not");this.put("paysStatus", paysStatus);return this;};
	 		
			
		public M paysStatusIn(String ids){
			if(proxy)return proxy().paysStatusIn(ids);  this.put("paysStatusIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 支付协议    1:同意 2:不同意     **/
		public M agreement(Object agreement){if(proxy)return proxy().agreement(agreement);  this.put("agreement", agreement);return this;};
	 	/** and agreement is null */
 		public M agreementNull(){if(proxy)return proxy().agreementNull();if(this.get("agreementNot")==null)this.put("agreementNot", "");this.put("agreement", null);return this;};
 		/** not .... */
 		public M agreementNot(){if(proxy)return proxy().agreementNot();this.put("agreementNot", "not");return this;};
 		public M agreementNotNull(){if(proxy)return proxy().agreementNotNull();this.put("agreementNot", "not");this.put("agreement", null);return this;};
 		public M agreementNot(Object agreement){if(proxy)return proxy().agreementNot(agreement);this.put("agreementNot", "not");this.put("agreement", agreement);return this;};
	 		
			
		public M agreementIn(String ids){
			if(proxy)return proxy().agreementIn(ids);  this.put("agreementIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 实际处理方    1:待确定 2:品牌总部 3:配送商     **/
		public M processor(Object processor){if(proxy)return proxy().processor(processor);  this.put("processor", processor);return this;};
	 	/** and processor is null */
 		public M processorNull(){if(proxy)return proxy().processorNull();if(this.get("processorNot")==null)this.put("processorNot", "");this.put("processor", null);return this;};
 		/** not .... */
 		public M processorNot(){if(proxy)return proxy().processorNot();this.put("processorNot", "not");return this;};
 		public M processorNotNull(){if(proxy)return proxy().processorNotNull();this.put("processorNot", "not");this.put("processor", null);return this;};
 		public M processorNot(Object processor){if(proxy)return proxy().processorNot(processor);this.put("processorNot", "not");this.put("processor", processor);return this;};
	 		
			
		public M processorIn(String ids){
			if(proxy)return proxy().processorIn(ids);  this.put("processorIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 售后类型    0:暂无 1:投诉 2:退款     **/
		public M afterSType(Object afterSType){if(proxy)return proxy().afterSType(afterSType);  this.put("afterSType", afterSType);return this;};
	 	/** and after_s_type is null */
 		public M afterSTypeNull(){if(proxy)return proxy().afterSTypeNull();if(this.get("afterSTypeNot")==null)this.put("afterSTypeNot", "");this.put("afterSType", null);return this;};
 		/** not .... */
 		public M afterSTypeNot(){if(proxy)return proxy().afterSTypeNot();this.put("afterSTypeNot", "not");return this;};
 		public M afterSTypeNotNull(){if(proxy)return proxy().afterSTypeNotNull();this.put("afterSTypeNot", "not");this.put("afterSType", null);return this;};
 		public M afterSTypeNot(Object afterSType){if(proxy)return proxy().afterSTypeNot(afterSType);this.put("afterSTypeNot", "not");this.put("afterSType", afterSType);return this;};
	 		
			
		public M afterSTypeIn(String ids){
			if(proxy)return proxy().afterSTypeIn(ids);  this.put("afterSTypeIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 投诉理由        **/
		public M complaint(Object complaint){if(proxy)return proxy().complaint(complaint);  this.put("complaint", complaint);return this;};
	 	/** and complaint is null */
 		public M complaintNull(){if(proxy)return proxy().complaintNull();if(this.get("complaintNot")==null)this.put("complaintNot", "");this.put("complaint", null);return this;};
 		/** not .... */
 		public M complaintNot(){if(proxy)return proxy().complaintNot();this.put("complaintNot", "not");return this;};
 		public M complaintNotNull(){if(proxy)return proxy().complaintNotNull();this.put("complaintNot", "not");this.put("complaint", null);return this;};
 		public M complaintNot(Object complaint){if(proxy)return proxy().complaintNot(complaint);this.put("complaintNot", "not");this.put("complaint", complaint);return this;};
	 		
			
		
			
	 	
			
		
		/** 投诉是处理    0:无投诉 1:未处理 2:已处理     **/
		public M dealted(Object dealted){if(proxy)return proxy().dealted(dealted);  this.put("dealted", dealted);return this;};
	 	/** and dealted is null */
 		public M dealtedNull(){if(proxy)return proxy().dealtedNull();if(this.get("dealtedNot")==null)this.put("dealtedNot", "");this.put("dealted", null);return this;};
 		/** not .... */
 		public M dealtedNot(){if(proxy)return proxy().dealtedNot();this.put("dealtedNot", "not");return this;};
 		public M dealtedNotNull(){if(proxy)return proxy().dealtedNotNull();this.put("dealtedNot", "not");this.put("dealted", null);return this;};
 		public M dealtedNot(Object dealted){if(proxy)return proxy().dealtedNot(dealted);this.put("dealtedNot", "not");this.put("dealted", dealted);return this;};
	 		
			
		public M dealtedIn(String ids){
			if(proxy)return proxy().dealtedIn(ids);  this.put("dealtedIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 退款状态    0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款     **/
		public M refundStatus(Object refundStatus){if(proxy)return proxy().refundStatus(refundStatus);  this.put("refundStatus", refundStatus);return this;};
	 	/** and refund_status is null */
 		public M refundStatusNull(){if(proxy)return proxy().refundStatusNull();if(this.get("refundStatusNot")==null)this.put("refundStatusNot", "");this.put("refundStatus", null);return this;};
 		/** not .... */
 		public M refundStatusNot(){if(proxy)return proxy().refundStatusNot();this.put("refundStatusNot", "not");return this;};
 		public M refundStatusNotNull(){if(proxy)return proxy().refundStatusNotNull();this.put("refundStatusNot", "not");this.put("refundStatus", null);return this;};
 		public M refundStatusNot(Object refundStatus){if(proxy)return proxy().refundStatusNot(refundStatus);this.put("refundStatusNot", "not");this.put("refundStatus", refundStatus);return this;};
	 		
			
		public M refundStatusIn(String ids){
			if(proxy)return proxy().refundStatusIn(ids);  this.put("refundStatusIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 拒绝退款理由        **/
		public M refuseRefund(Object refuseRefund){if(proxy)return proxy().refuseRefund(refuseRefund);  this.put("refuseRefund", refuseRefund);return this;};
	 	/** and refuse_refund is null */
 		public M refuseRefundNull(){if(proxy)return proxy().refuseRefundNull();if(this.get("refuseRefundNot")==null)this.put("refuseRefundNot", "");this.put("refuseRefund", null);return this;};
 		/** not .... */
 		public M refuseRefundNot(){if(proxy)return proxy().refuseRefundNot();this.put("refuseRefundNot", "not");return this;};
 		public M refuseRefundNotNull(){if(proxy)return proxy().refuseRefundNotNull();this.put("refuseRefundNot", "not");this.put("refuseRefund", null);return this;};
 		public M refuseRefundNot(Object refuseRefund){if(proxy)return proxy().refuseRefundNot(refuseRefund);this.put("refuseRefundNot", "not");this.put("refuseRefund", refuseRefund);return this;};
	 		
			
		
			
	 	
			
		
		/** 会员退款理由        **/
		public M meRefundMoney(Object meRefundMoney){if(proxy)return proxy().meRefundMoney(meRefundMoney);  this.put("meRefundMoney", meRefundMoney);return this;};
	 	/** and me_refund_money is null */
 		public M meRefundMoneyNull(){if(proxy)return proxy().meRefundMoneyNull();if(this.get("meRefundMoneyNot")==null)this.put("meRefundMoneyNot", "");this.put("meRefundMoney", null);return this;};
 		/** not .... */
 		public M meRefundMoneyNot(){if(proxy)return proxy().meRefundMoneyNot();this.put("meRefundMoneyNot", "not");return this;};
 		public M meRefundMoneyNotNull(){if(proxy)return proxy().meRefundMoneyNotNull();this.put("meRefundMoneyNot", "not");this.put("meRefundMoney", null);return this;};
 		public M meRefundMoneyNot(Object meRefundMoney){if(proxy)return proxy().meRefundMoneyNot(meRefundMoney);this.put("meRefundMoneyNot", "not");this.put("meRefundMoney", meRefundMoney);return this;};
	 		
			
		
			
	 	
			
		
		/** formId        **/
		public M directoFormid(Object directoFormid){if(proxy)return proxy().directoFormid(directoFormid);  this.put("directoFormid", directoFormid);return this;};
	 	/** and directo_formid is null */
 		public M directoFormidNull(){if(proxy)return proxy().directoFormidNull();if(this.get("directoFormidNot")==null)this.put("directoFormidNot", "");this.put("directoFormid", null);return this;};
 		/** not .... */
 		public M directoFormidNot(){if(proxy)return proxy().directoFormidNot();this.put("directoFormidNot", "not");return this;};
 		public M directoFormidNotNull(){if(proxy)return proxy().directoFormidNotNull();this.put("directoFormidNot", "not");this.put("directoFormid", null);return this;};
 		public M directoFormidNot(Object directoFormid){if(proxy)return proxy().directoFormidNot(directoFormid);this.put("directoFormidNot", "not");this.put("directoFormid", directoFormid);return this;};
	 		
			
		
			
	 	
			
		
		/** 接单时间        **/
		public M getOrderTime(Object getOrderTime){if(proxy)return proxy().getOrderTime(getOrderTime);  this.put("getOrderTime", getOrderTime);return this;};
	 	/** and get_order_time is null */
 		public M getOrderTimeNull(){if(proxy)return proxy().getOrderTimeNull();if(this.get("getOrderTimeNot")==null)this.put("getOrderTimeNot", "");this.put("getOrderTime", null);return this;};
 		/** not .... */
 		public M getOrderTimeNot(){if(proxy)return proxy().getOrderTimeNot();this.put("getOrderTimeNot", "not");return this;};
 		public M getOrderTimeNotNull(){if(proxy)return proxy().getOrderTimeNotNull();this.put("getOrderTimeNot", "not");this.put("getOrderTime", null);return this;};
 		public M getOrderTimeNot(Object getOrderTime){if(proxy)return proxy().getOrderTimeNot(getOrderTime);this.put("getOrderTimeNot", "not");this.put("getOrderTime", getOrderTime);return this;};
	 		
 		/** and get_order_time >= ? */
 		public M getOrderTimeStart(Object start){if(proxy)return proxy().getOrderTimeStart(start);this.put("getOrderTimeStart", start);return this;};			
 		/** and get_order_time <= ? */
 		public M getOrderTimeEnd(Object end){if(proxy)return proxy().getOrderTimeEnd(end);this.put("getOrderTimeEnd", end);return this;};
			
			
		
			
	 	
			
		
		/** 打款原因        **/
		public M erroLog(Object erroLog){if(proxy)return proxy().erroLog(erroLog);  this.put("erroLog", erroLog);return this;};
	 	/** and erro_log is null */
 		public M erroLogNull(){if(proxy)return proxy().erroLogNull();if(this.get("erroLogNot")==null)this.put("erroLogNot", "");this.put("erroLog", null);return this;};
 		/** not .... */
 		public M erroLogNot(){if(proxy)return proxy().erroLogNot();this.put("erroLogNot", "not");return this;};
 		public M erroLogNotNull(){if(proxy)return proxy().erroLogNotNull();this.put("erroLogNot", "not");this.put("erroLog", null);return this;};
 		public M erroLogNot(Object erroLog){if(proxy)return proxy().erroLogNot(erroLog);this.put("erroLogNot", "not");this.put("erroLog", erroLog);return this;};
	 		
			
		
			
	 	
			
		
		/** 修改时间 [非空]       **/
		public M updateTime(Object updateTime){if(proxy)return proxy().updateTime(updateTime);  this.put("updateTime", updateTime);return this;};
	 	/** and update_time is null */
 		public M updateTimeNull(){if(proxy)return proxy().updateTimeNull();if(this.get("updateTimeNot")==null)this.put("updateTimeNot", "");this.put("updateTime", null);return this;};
 		/** not .... */
 		public M updateTimeNot(){if(proxy)return proxy().updateTimeNot();this.put("updateTimeNot", "not");return this;};
 		public M updateTimeNotNull(){if(proxy)return proxy().updateTimeNotNull();this.put("updateTimeNot", "not");this.put("updateTime", null);return this;};
 		public M updateTimeNot(Object updateTime){if(proxy)return proxy().updateTimeNot(updateTime);this.put("updateTimeNot", "not");this.put("updateTime", updateTime);return this;};
	 		
 		/** and update_time >= ? */
 		public M updateTimeStart(Object start){if(proxy)return proxy().updateTimeStart(start);this.put("updateTimeStart", start);return this;};			
 		/** and update_time <= ? */
 		public M updateTimeEnd(Object end){if(proxy)return proxy().updateTimeEnd(end);this.put("updateTimeEnd", end);return this;};
			
			
		
			
	 	
			
		
		/** 添加时间 [非空]       **/
		public M addTime(Object addTime){if(proxy)return proxy().addTime(addTime);  this.put("addTime", addTime);return this;};
	 	/** and add_time is null */
 		public M addTimeNull(){if(proxy)return proxy().addTimeNull();if(this.get("addTimeNot")==null)this.put("addTimeNot", "");this.put("addTime", null);return this;};
 		/** not .... */
 		public M addTimeNot(){if(proxy)return proxy().addTimeNot();this.put("addTimeNot", "not");return this;};
 		public M addTimeNotNull(){if(proxy)return proxy().addTimeNotNull();this.put("addTimeNot", "not");this.put("addTime", null);return this;};
 		public M addTimeNot(Object addTime){if(proxy)return proxy().addTimeNot(addTime);this.put("addTimeNot", "not");this.put("addTime", addTime);return this;};
	 		
 		/** and add_time >= ? */
 		public M addTimeStart(Object start){if(proxy)return proxy().addTimeStart(start);this.put("addTimeStart", start);return this;};			
 		/** and add_time <= ? */
 		public M addTimeEnd(Object end){if(proxy)return proxy().addTimeEnd(end);this.put("addTimeEnd", end);return this;};
			
			
		
			
	 	
			
		
		/** 状态 [非空]   1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除     **/
		public M status(Object status){if(proxy)return proxy().status(status);  this.put("status", status);return this;};
	 	/** and status is null */
 		public M statusNull(){if(proxy)return proxy().statusNull();if(this.get("statusNot")==null)this.put("statusNot", "");this.put("status", null);return this;};
 		/** not .... */
 		public M statusNot(){if(proxy)return proxy().statusNot();this.put("statusNot", "not");return this;};
 		public M statusNotNull(){if(proxy)return proxy().statusNotNull();this.put("statusNot", "not");this.put("status", null);return this;};
 		public M statusNot(Object status){if(proxy)return proxy().statusNot(status);this.put("statusNot", "not");this.put("status", status);return this;};
	 		
			
		public M statusIn(String ids){
			if(proxy)return proxy().statusIn(ids);  this.put("statusIn", ids);return this;
		};	
 			
		
			
	 	
			
		
		/** 抵消        **/
		public M dx(Object dx){if(proxy)return proxy().dx(dx);  this.put("dx", dx);return this;};
	 	/** and dx is null */
 		public M dxNull(){if(proxy)return proxy().dxNull();if(this.get("dxNot")==null)this.put("dxNot", "");this.put("dx", null);return this;};
 		/** not .... */
 		public M dxNot(){if(proxy)return proxy().dxNot();this.put("dxNot", "not");return this;};
 		public M dxNotNull(){if(proxy)return proxy().dxNotNull();this.put("dxNot", "not");this.put("dx", null);return this;};
 		public M dxNot(Object dx){if(proxy)return proxy().dxNot(dx);this.put("dxNot", "not");this.put("dx", dx);return this;};
	 		
		/** and dx <= ? */
		public M dxMin(Object min){if(proxy)return proxy().dxMin(min);this.put("dxMin", min);return this;};
		/** and dx >= ? */
		public M dxMax(Object max){if(proxy)return proxy().dxMax(max);this.put("dxMax", max);return this;};
			
			
		
			
	 	
	 	public M add(String key, Object value) {if(proxy)return proxy().add(key,value);this.put(key, value);return this;}
	 	public M add(F key, Object value) {if(proxy)return proxy().add(key,value);this.put(key.toString(), value);return this;}
	 	
	 	public M desc(C key) {if(proxy)return proxy().desc(key);this.put("desc", key.column);return this;}
	 	public M asc(C key) {if(proxy)return proxy().asc(key);this.put("asc", key.column);return this;}
	 	public M desc(String sql) {if(proxy)return proxy().desc(sql);this.put("desc", sql);return this;}
	 	public M asc(String sql) {if(proxy)return proxy().asc(sql);this.put("asc", sql);return this;}
	 	public M definex(String sql) {if(proxy)return proxy().definex(sql);this.put("definex", sql);return this;}
	 	
	 	/** 获取所有商品订单 **/
		public @api List<DirectOrder> list(Integer size){			
			return getDirectOrderList(this,size);
		}
		/** 获取商品订单分页 **/
		public @api Page<DirectOrder> page(Integer page,Integer size){			
			return getDirectOrderPage(page, size , this);
		}
		/** 根据查询条件取商品订单 **/
		public @api DirectOrder get(){			
			return getDirectOrder(this);
		}
		/** 获取商品订单数 **/
		public @api Long count(){			
			return getDirectOrderCount(this);
		}
		/** 获取商品订单表达式 **/
		public @api <T> T eval(String strEval){			
			return getDirectOrderEval(strEval,this);
		}
		
		/** 获取商品订单统计 **/
		public @api List<Map> stats(C sumKey,C groupKey,int dateType){			
			return getDirectOrderStats(this,sumKey,groupKey,dateType);
		}
		/** 获取商品订单统计 **/
		public @api List<Map> stats(C sumKey,C groupKey){			
			return getDirectOrderStats(this,sumKey,groupKey,-1);
		}
		
		/** 根据条件更新 **/
		public @api int update(){			
			M where = null;
			M set = null;
			if(this.type==0){
				if(this.linked==null)throw new RuntimeException("未发set");
				where = this;
				set = this.linked;
			}else{
				if(this.linked==null)throw new RuntimeException("未发where条件");
				set = this;
				where = this.linked;
			}
			return updateDirectOrder(set,where);
		}
		/** 根据条件删除 **/
		public @api void delete(){			
			deleteDirectOrder(this);
		}
	}
	
	public static class Param extends M{
		public Param(int type) {
			super(type);
		}
		public Param(int type, Boolean proxy) {
			super(type, proxy);
		}
	}
	
	/** 对象的字段描述 **/
	public static class F{
		
			
		/** 编号 [非空]       **/
		public final static @type(Long.class)  String id="id";
	 			
			
	 	
			
		/** 订单号 [非空]       **/
		public final static @type(String.class) @like String no="no";
	 			
			
	 	
			
		/** 品牌商  [Merchant]      **/
		public final static @type(Long.class)  String merchant="merchant";
	 			
			
	 	
			
		/** 经销商        **/
		public final static @type(String.class) @like String jxs="jxs";
	 			
			
	 	
			
		/** 订单类型    1:直接购买订单 2:余额提货订单     **/
		public final static @type(Short.class)  String orderType="orderType";
	 			
			
	 	
			
		/** 用户编号 [非空]       **/
		public final static @type(Long.class)  String uid="uid";
	 			
			
	 	
			
		/** 下单人        **/
		public final static @type(String.class) @like String memberName="memberName";
	 			
			
	 	
			
		/** 会员信息 [非空] [Member]      **/
		public final static @type(Long.class)  String member="member";
	 			
			
	 	
			
				
		public final static @type(Long.class) String details="details";
				
			
	 	
			
		/** 备注信息        **/
		public final static @type(String.class) @like String remarks="remarks";
	 			
			
	 	
			
		/** 物流方式    shunfeng:顺丰 shentong:申通 yuantong:圆通 zhongtong:中通 huitongkuaidi:百世汇通 baishiwuliu:百世物流 yunda:韵达 zhaijisong:宅急送 tiantian:天天 debangwuliu:德邦 guotongkuaidi:国通 zengyisudi:增益 suer:速尔 ztky:中铁物流 zhongtiewuliu:中铁快运 ganzhongnengda:能达 youshuwuliu:优速 quanfengkuaidi:全峰 jd:京东 youzhengguonei:邮政包裹/平邮 youzhengguoji:国际包裹 ems:EMS emsguoji:EMS-国际件     **/
		public final static @type(String.class)  String logisMode="logisMode";
	 			
			
	 	
			
		/** 送货地址        **/
		public final static @type(String.class) @like String address="address";
	 			
			
	 	
			
		/** 地址编号        **/
		public final static @type(Long.class)  String street="street";
	 			
		/** and street >= ? */
		public final static @type(Long.class) String streetMin="streetMin";
		/** and street <= ? */
		public final static @type(Long.class) String streetMax="streetMax";
				
			
	 	
			
		/** 经度        **/
		public final static @type(String.class)  String longitude="longitude";
	 			
			
	 	
			
		/** 纬度        **/
		public final static @type(String.class)  String latitude="latitude";
	 			
			
	 	
			
		/** 所属地区  [Region]      **/
		public final static @type(Long.class)  String regionCity="regionCity";
	 			
			
	 	
			
		/** 收货人姓名        **/
		public final static @type(String.class)  String consigneeName="consigneeName";
	 			
			
	 	
			
		/** 收货电话号        **/
		public final static @type(String.class)  String receivingTelephoneNumber="receivingTelephoneNumber";
	 			
			
	 	
			
		/** 性别    1:男 2:女     **/
		public final static @type(Short.class)  String gender="gender";
	 			
			
	 	
			
		/** 快递单号        **/
		public final static @type(String.class)  String courier="courier";
	 			
			
	 	
			
		/** 配送方式    1:到店自提 2:送货上门     **/
		public final static @type(Short.class)  String distributionMode="distributionMode";
	 			
			
	 	
			
		/** 配送商名称        **/
		public final static @type(String.class) @like String distributorName="distributorName";
	 			
			
	 	
			
		/** 配送商  [Distributor]      **/
		public final static @type(Long.class)  String distributor="distributor";
	 			
			
	 	
			
		/** 配送商收益        **/
		public final static @type(Double.class)  String distributorIncome="distributorIncome";
	 			
		/** and distributor_income >= ? */
		public final static @type(Double.class) String distributorIncomeMin="distributorIncomeMin";
		/** and distributor_income <= ? */
		public final static @type(Double.class) String distributorIncomeMax="distributorIncomeMax";
				
			
	 	
			
		/** 接单类型    1:配送商接单 2:退回品牌总部 3:暂不可接单     **/
		public final static @type(Short.class)  String sType="sType";
	 			
			
	 	
			
		/** 自提地址        **/
		public final static @type(String.class)  String selfAddress="selfAddress";
	 			
			
	 	
			
		/** 配送费        **/
		public final static @type(Double.class)  String dispatFee="dispatFee";
	 			
		/** and dispat_fee >= ? */
		public final static @type(Double.class) String dispatFeeMin="dispatFeeMin";
		/** and dispat_fee <= ? */
		public final static @type(Double.class) String dispatFeeMax="dispatFeeMax";
				
			
	 	
			
		/** 使用优惠券  [Coupon]      **/
		public final static @type(Long.class)  String coupon="coupon";
	 			
			
	 	
			
		/** 使用产品券        **/
		public final static @type(String.class)  String useProductVouchers="useProductVouchers";
	 			
			
	 	
			
		/** 优惠卷抵扣        **/
		public final static @type(Double.class)  String couponFree="couponFree";
	 			
		/** and coupon_free >= ? */
		public final static @type(Double.class) String couponFreeMin="couponFreeMin";
		/** and coupon_free <= ? */
		public final static @type(Double.class) String couponFreeMax="couponFreeMax";
				
			
	 	
			
		/** 产品卷抵扣        **/
		public final static @type(Double.class)  String productFree="productFree";
	 			
		/** and product_free >= ? */
		public final static @type(Double.class) String productFreeMin="productFreeMin";
		/** and product_free <= ? */
		public final static @type(Double.class) String productFreeMax="productFreeMax";
				
			
	 	
			
		/** 总金额        **/
		public final static @type(Double.class)  String totalSum="totalSum";
	 			
		/** and total_sum >= ? */
		public final static @type(Double.class) String totalSumMin="totalSumMin";
		/** and total_sum <= ? */
		public final static @type(Double.class) String totalSumMax="totalSumMax";
				
			
	 	
			
		/** 实际支付        **/
		public final static @type(Double.class)  String actualPay="actualPay";
	 			
		/** and actual_pay >= ? */
		public final static @type(Double.class) String actualPayMin="actualPayMin";
		/** and actual_pay <= ? */
		public final static @type(Double.class) String actualPayMax="actualPayMax";
				
			
	 	
			
		/** 支付情况    0:未支付 1:已支付     **/
		public final static @type(Short.class)  String paysStatus="paysStatus";
	 			
			
	 	
			
		/** 支付协议    1:同意 2:不同意     **/
		public final static @type(Short.class)  String agreement="agreement";
	 			
			
	 	
			
		/** 实际处理方    1:待确定 2:品牌总部 3:配送商     **/
		public final static @type(Short.class)  String processor="processor";
	 			
			
	 	
			
		/** 售后类型    0:暂无 1:投诉 2:退款     **/
		public final static @type(Short.class)  String afterSType="afterSType";
	 			
			
	 	
			
		/** 投诉理由        **/
		public final static @type(String.class) @like String complaint="complaint";
	 			
			
	 	
			
		/** 投诉是处理    0:无投诉 1:未处理 2:已处理     **/
		public final static @type(Short.class)  String dealted="dealted";
	 			
			
	 	
			
		/** 退款状态    0:无 1:待审核 2:同意退款 3:拒绝退款 4:已退款     **/
		public final static @type(Short.class)  String refundStatus="refundStatus";
	 			
			
	 	
			
		/** 拒绝退款理由        **/
		public final static @type(String.class) @like String refuseRefund="refuseRefund";
	 			
			
	 	
			
		/** 会员退款理由        **/
		public final static @type(String.class) @like String meRefundMoney="meRefundMoney";
	 			
			
	 	
			
		/** formId        **/
		public final static @type(String.class)  String directoFormid="directoFormid";
	 			
			
	 	
			
		/** 接单时间        **/
		public final static @type(Date.class)  String getOrderTime="getOrderTime";
	 			
	 	/** and get_order_time >= ? */
 		public final static @type(Date.class) String getOrderTimeStart="getOrderTimeStart";
 		/** and get_order_time <= ? */
 		public final static @type(Date.class) String getOrderTimeEnd="getOrderTimeEnd";
				
			
	 	
			
		/** 打款原因        **/
		public final static @type(String.class)  String erroLog="erroLog";
	 			
			
	 	
			
		/** 修改时间 [非空]       **/
		public final static @type(Date.class)  String updateTime="updateTime";
	 			
	 	/** and update_time >= ? */
 		public final static @type(Date.class) String updateTimeStart="updateTimeStart";
 		/** and update_time <= ? */
 		public final static @type(Date.class) String updateTimeEnd="updateTimeEnd";
				
			
	 	
			
		/** 添加时间 [非空]       **/
		public final static @type(Date.class)  String addTime="addTime";
	 			
	 	/** and add_time >= ? */
 		public final static @type(Date.class) String addTimeStart="addTimeStart";
 		/** and add_time <= ? */
 		public final static @type(Date.class) String addTimeEnd="addTimeEnd";
				
			
	 	
			
		/** 状态 [非空]   1:待支付 2:待发货 3:待收货/自提 4:已收货 5:售后 6:已完成 7:已删除     **/
		public final static @type(Short.class)  String status="status";
	 			
			
	 	
			
		/** 抵消        **/
		public final static @type(Double.class)  String dx="dx";
	 			
		/** and dx >= ? */
		public final static @type(Double.class) String dxMin="dxMin";
		/** and dx <= ? */
		public final static @type(Double.class) String dxMax="dxMax";
				
			
	 	
	 	public static String get(String name){
			try {
				Field field = F.class.getField(name);
				if(field!=null)
					return field.get(null).toString();
			} catch (Exception e) {
				//e.printStackTrace();
			}
			return null;
		}
	}
	
	
	
	/** 对象的数据库字段描述 **/
	public static enum C{
		
		id("id"),
		no("no"),
		merchant("merchant"),
		jxs("jxs"),
		orderType("order_type"),
		uid("uid"),
		memberName("member_name"),
		member("member"),
		
		remarks("remarks"),
		logisMode("logis_mode"),
		address("address"),
		street("street"),
		longitude("longitude"),
		latitude("latitude"),
		regionCity("region_city"),
		consigneeName("consignee_name"),
		receivingTelephoneNumber("receiving_telephone_number"),
		gender("gender"),
		courier("courier"),
		distributionMode("distribution_mode"),
		distributorName("distributor_name"),
		distributor("distributor"),
		distributorIncome("distributor_income"),
		sType("s_type"),
		selfAddress("self_address"),
		dispatFee("dispat_fee"),
		coupon("coupon"),
		useProductVouchers("use_product_vouchers"),
		couponFree("coupon_free"),
		productFree("product_free"),
		totalSum("total_sum"),
		actualPay("actual_pay"),
		paysStatus("pays_status"),
		agreement("agreement"),
		processor("processor"),
		afterSType("after_s_type"),
		complaint("complaint"),
		dealted("dealted"),
		refundStatus("refund_status"),
		refuseRefund("refuse_refund"),
		meRefundMoney("me_refund_money"),
		directoFormid("directo_formid"),
		getOrderTime("get_order_time"),
		erroLog("erro_log"),
		updateTime("update_time"),
		addTime("add_time"),
		status("status"),
		dx("dx"),
		count("count");
		String column;
		C(String column){
			this.column = column;
		}
		public String toString(){
			return this.column;
		}
		public static String get(String name){
			try {
				Field field = C.class.getField(name);
				if(field!=null)
					return field.get(null).toString();
			} catch (Exception e) {
				//e.printStackTrace();
			}
			return null;
		}
	}
	
	
	
	
	/**
	* 获取商品订单数据
	**/
	public static Object getData(Object param){
		if(param==null)
			return null;
		Object value = null;
		if(param.getClass()==Long.class)
			value = DirectOrder.get((Long)param);
		else if(param instanceof java.util.Map){
			java.util.Map params = (Map) param;
			if(params.get("size")==null)
				value = DirectOrder.getDirectOrder(params);
			else
				value = DirectOrder.getDirectOrderList(params, (Integer) params.get("size"));
		}else if(param.getClass()==Long.class )
			value =  DirectOrder.where().id(param).get();
		else if(!Utils.empty(param.toString()))
			value = DirectOrder.get(Long.valueOf(param.toString()));
		return value;
	}
	
	/**对象转json**/
	public Map toJSON(){
		return toJSON(false);
	}
	public Map toJSON(boolean simple){
		return toJSON(simple,0);
	}
	public Map toJSON(boolean simple,int step){
		Map map = new HashMap();
		map.put("id",this.getId());
	
		Utils.fms(map,simple?"":"id",this.getId(),this.getId$());
		
			
 		
	
		Utils.fms(map,simple?"":"no",this.getNo(),this.getNo$());
		
			
 		
	
		Utils.fms(map,simple?"":"merchant",this.getMerchant(),this.getMerchant$());
		
			
 		
	
		Utils.fms(map,simple?"":"jxs",this.getJxs(),this.getJxs$());
		
			
 		
	
		Utils.fms(map,simple?"type":"orderType",this.getOrderType(),this.getOrderType$());
		
			
 		
	
		Utils.fms(map,simple?"":"uid",this.getUid(),this.getUid$());
		
			
 		
	
		Utils.fms(map,simple?"name":"memberName",this.getMemberName(),this.getMemberName$());
		
			
 		
	
		Utils.fms(map,simple?"":"member",this.getMember(),this.getMember$());
		
			
 		
	

	       {
	 			
	 			List<OrderDetails> exists = this.get$details();
	 			List<Map> list = new ArrayList();
	 			for(OrderDetails entity:exists){
	 				list.add(entity.toJSON(simple));
	 			}
	 			Utils.fms(map,simple?"":"details",list,this.getDetails$());
	 		}
		
	
		Utils.fms(map,simple?"":"remarks",this.getRemarks(),this.getRemarks$());
		
			
 		
	
		Utils.fms(map,simple?"mode":"logisMode",this.getLogisMode(),this.getLogisMode$());
		
			
 		
	
		Utils.fms(map,simple?"":"address",this.getAddress(),this.getAddress$());
		
			
 		
	
		Utils.fms(map,simple?"":"street",this.getStreet(),this.getStreet$());
		
			
 		
	
		Utils.fms(map,simple?"":"longitude",this.getLongitude(),this.getLongitude$());
		
			
 		
	
		Utils.fms(map,simple?"":"latitude",this.getLatitude(),this.getLatitude$());
		
			
 		
	
		Utils.fms(map,simple?"city":"regionCity",this.getRegionCity(),this.getRegionCity$());
		
			
 		
	
		Utils.fms(map,simple?"name":"consigneeName",this.getConsigneeName(),this.getConsigneeName$());
		
			
 		
	
		Utils.fms(map,simple?"telephoneNumber":"receivingTelephoneNumber",this.getReceivingTelephoneNumber(),this.getReceivingTelephoneNumber$());
		
			
 		
	
		Utils.fms(map,simple?"":"gender",this.getGender(),this.getGender$());
		
			
 		
	
		Utils.fms(map,simple?"":"courier",this.getCourier(),this.getCourier$());
		
			
 		
	
		Utils.fms(map,simple?"mode":"distributionMode",this.getDistributionMode(),this.getDistributionMode$());
		
			
 		
	
		Utils.fms(map,simple?"name":"distributorName",this.getDistributorName(),this.getDistributorName$());
		
			
 		
	
		Utils.fms(map,simple?"":"distributor",this.getDistributor(),this.getDistributor$());
		
			
 		
	
		Utils.fms(map,simple?"income":"distributorIncome",this.getDistributorIncome(),this.getDistributorIncome$());
		
			
 		
	
		Utils.fms(map,simple?"type":"sType",this.getsType(),this.getsType$());
		
			
 		
	
		Utils.fms(map,simple?"address":"selfAddress",this.getSelfAddress(),this.getSelfAddress$());
		
			
 		
	
		Utils.fms(map,simple?"fee":"dispatFee",this.getDispatFee(),this.getDispatFee$());
		
			
 		
	
		Utils.fms(map,simple?"":"coupon",this.getCoupon(),this.getCoupon$());
		
			
 		
	
		Utils.fms(map,simple?"productVouchers":"useProductVouchers",this.getUseProductVouchers(),this.getUseProductVouchers$());
		
			
 		
	
		Utils.fms(map,simple?"free":"couponFree",this.getCouponFree(),this.getCouponFree$());
		
			
 		
	
		Utils.fms(map,simple?"free":"productFree",this.getProductFree(),this.getProductFree$());
		
			
 		
	
		Utils.fms(map,simple?"sum":"totalSum",this.getTotalSum(),this.getTotalSum$());
		
			
 		
	
		Utils.fms(map,simple?"pay":"actualPay",this.getActualPay(),this.getActualPay$());
		
			
 		
	
		Utils.fms(map,simple?"status":"paysStatus",this.getPaysStatus(),this.getPaysStatus$());
		
			
 		
	
		Utils.fms(map,simple?"":"agreement",this.getAgreement(),this.getAgreement$());
		
			
 		
	
		Utils.fms(map,simple?"":"processor",this.getProcessor(),this.getProcessor$());
		
			
 		
	
		Utils.fms(map,simple?"sType":"afterSType",this.getAfterSType(),this.getAfterSType$());
		
			
 		
	
		Utils.fms(map,simple?"":"complaint",this.getComplaint(),this.getComplaint$());
		
			
 		
	
		Utils.fms(map,simple?"":"dealted",this.getDealted(),this.getDealted$());
		
			
 		
	
		Utils.fms(map,simple?"status":"refundStatus",this.getRefundStatus(),this.getRefundStatus$());
		
			
 		
	
		Utils.fms(map,simple?"refund":"refuseRefund",this.getRefuseRefund(),this.getRefuseRefund$());
		
			
 		
	
		Utils.fms(map,simple?"refundMoney":"meRefundMoney",this.getMeRefundMoney(),this.getMeRefundMoney$());
		
			
 		
	
		Utils.fms(map,simple?"formid":"directoFormid",this.getDirectoFormid(),this.getDirectoFormid$());
		
			
 		
	
		Utils.fms(map,simple?"orderTime":"getOrderTime",this.getGetOrderTime(),this.getGetOrderTime$());
		
			
 		
	
		Utils.fms(map,simple?"log":"erroLog",this.getErroLog(),this.getErroLog$());
		
			
 		
	
		Utils.fms(map,simple?"time":"updateTime",this.getUpdateTime(),this.getUpdateTime$());
		
			
 		
	
		Utils.fms(map,simple?"time":"addTime",this.getAddTime(),this.getAddTime$());
		
			
 		
	
		Utils.fms(map,simple?"":"status",this.getStatus(),this.getStatus$());
		
			
 		
	
		Utils.fms(map,simple?"":"dx",this.getDx(),this.getDx$());
		
			
 		
	
		if(this.suffix!=null)map.put("suffix", this.suffix);
		
		/************LAZY3Q_DEFINE_TOJSON************/
		/************LAZY3Q_DEFINE_TOJSON************/
		return map;
	}
	/**对象转map**/
	public Map toMap(){
		Map map = new HashMap();
	
		map.put("id",this.getId());
 		
	
		map.put("no",this.getNo());
 		
	
		map.put("merchant",this.getMerchant());
 		
	
		map.put("jxs",this.getJxs());
 		
	
		map.put("orderType",this.getOrderType());
 		
	
		map.put("uid",this.getUid());
 		
	
		map.put("memberName",this.getMemberName());
 		
	
		map.put("member",this.getMember());
 		
	
	
		map.put("remarks",this.getRemarks());
 		
	
		map.put("logisMode",this.getLogisMode());
 		
	
		map.put("address",this.getAddress());
 		
	
		map.put("street",this.getStreet());
 		
	
		map.put("longitude",this.getLongitude());
 		
	
		map.put("latitude",this.getLatitude());
 		
	
		map.put("regionCity",this.getRegionCity());
 		
	
		map.put("consigneeName",this.getConsigneeName());
 		
	
		map.put("receivingTelephoneNumber",this.getReceivingTelephoneNumber());
 		
	
		map.put("gender",this.getGender());
 		
	
		map.put("courier",this.getCourier());
 		
	
		map.put("distributionMode",this.getDistributionMode());
 		
	
		map.put("distributorName",this.getDistributorName());
 		
	
		map.put("distributor",this.getDistributor());
 		
	
		map.put("distributorIncome",this.getDistributorIncome());
 		
	
		map.put("sType",this.getsType());
 		
	
		map.put("selfAddress",this.getSelfAddress());
 		
	
		map.put("dispatFee",this.getDispatFee());
 		
	
		map.put("coupon",this.getCoupon());
 		
	
		map.put("useProductVouchers",this.getUseProductVouchers());
 		
	
		map.put("couponFree",this.getCouponFree());
 		
	
		map.put("productFree",this.getProductFree());
 		
	
		map.put("totalSum",this.getTotalSum());
 		
	
		map.put("actualPay",this.getActualPay());
 		
	
		map.put("paysStatus",this.getPaysStatus());
 		
	
		map.put("agreement",this.getAgreement());
 		
	
		map.put("processor",this.getProcessor());
 		
	
		map.put("afterSType",this.getAfterSType());
 		
	
		map.put("complaint",this.getComplaint());
 		
	
		map.put("dealted",this.getDealted());
 		
	
		map.put("refundStatus",this.getRefundStatus());
 		
	
		map.put("refuseRefund",this.getRefuseRefund());
 		
	
		map.put("meRefundMoney",this.getMeRefundMoney());
 		
	
		map.put("directoFormid",this.getDirectoFormid());
 		
	
		map.put("getOrderTime",this.getGetOrderTime());
 		
	
		map.put("erroLog",this.getErroLog());
 		
	
		map.put("updateTime",this.getUpdateTime());
 		
	
		map.put("addTime",this.getAddTime());
 		
	
		map.put("status",this.getStatus());
 		
	
		map.put("dx",this.getDx());
 		
	
		map.put("suffix", this.suffix);
		
		/************LAZY3Q_DEFINE_TOMAP************/
		/************LAZY3Q_DEFINE_TOMAP************/
		return map;
	}
	/**map转对象**/
	public static DirectOrder fromMap(Map map){
		DirectOrder directOrder = new DirectOrder();
	
		directOrder.id = Utils.parseLong(map.get("id"));
 		
	
		directOrder.no = Utils.parseString(map.get("no"));
 		
	
		directOrder.merchant = Utils.parseLong(map.get("merchant"));
 		
	
		directOrder.jxs = Utils.parseString(map.get("jxs"));
 		
	
		directOrder.orderType = Utils.parseShort(map.get("orderType"));
 		
	
	
		directOrder.memberName = Utils.parseString(map.get("memberName"));
 		
	
		directOrder.member = Utils.parseLong(map.get("member"));
 		
	
	
		directOrder.remarks = Utils.parseString(map.get("remarks"));
 		
	
		directOrder.logisMode = Utils.parseString(map.get("logisMode"));
 		
	
		directOrder.address = Utils.parseString(map.get("address"));
 		
	
		directOrder.street = Utils.parseLong(map.get("street"));
 		
	
		directOrder.longitude = Utils.parseString(map.get("longitude"));
 		
	
		directOrder.latitude = Utils.parseString(map.get("latitude"));
 		
	
		directOrder.regionCity = Utils.parseLong(map.get("regionCity"));
 		
	
		directOrder.consigneeName = Utils.parseString(map.get("consigneeName"));
 		
	
		directOrder.receivingTelephoneNumber = Utils.parseString(map.get("receivingTelephoneNumber"));
 		
	
		directOrder.gender = Utils.parseShort(map.get("gender"));
 		
	
		directOrder.courier = Utils.parseString(map.get("courier"));
 		
	
		directOrder.distributionMode = Utils.parseShort(map.get("distributionMode"));
 		
	
		directOrder.distributorName = Utils.parseString(map.get("distributorName"));
 		
	
		directOrder.distributor = Utils.parseLong(map.get("distributor"));
 		
	
		directOrder.distributorIncome = Utils.parseDouble(map.get("distributorIncome"));
 		
	
		directOrder.sType = Utils.parseShort(map.get("sType"));
 		
	
		directOrder.selfAddress = Utils.parseString(map.get("selfAddress"));
 		
	
		directOrder.dispatFee = Utils.parseDouble(map.get("dispatFee"));
 		
	
		directOrder.coupon = Utils.parseLong(map.get("coupon"));
 		
	
		directOrder.useProductVouchers = Utils.parseString(map.get("useProductVouchers"));
 		
	
		directOrder.couponFree = Utils.parseDouble(map.get("couponFree"));
 		
	
		directOrder.productFree = Utils.parseDouble(map.get("productFree"));
 		
	
		directOrder.totalSum = Utils.parseDouble(map.get("totalSum"));
 		
	
		directOrder.actualPay = Utils.parseDouble(map.get("actualPay"));
 		
	
		directOrder.paysStatus = Utils.parseShort(map.get("paysStatus"));
 		
	
		directOrder.agreement = Utils.parseShort(map.get("agreement"));
 		
	
		directOrder.processor = Utils.parseShort(map.get("processor"));
 		
	
		directOrder.afterSType = Utils.parseShort(map.get("afterSType"));
 		
	
		directOrder.complaint = Utils.parseString(map.get("complaint"));
 		
	
		directOrder.dealted = Utils.parseShort(map.get("dealted"));
 		
	
		directOrder.refundStatus = Utils.parseShort(map.get("refundStatus"));
 		
	
		directOrder.refuseRefund = Utils.parseString(map.get("refuseRefund"));
 		
	
		directOrder.meRefundMoney = Utils.parseString(map.get("meRefundMoney"));
 		
	
		directOrder.directoFormid = Utils.parseString(map.get("directoFormid"));
 		
	
		directOrder.getOrderTime = Utils.parseDate(map.get("getOrderTime"));
 		
	
		directOrder.erroLog = Utils.parseString(map.get("erroLog"));
 		
	
		directOrder.updateTime = Utils.parseDate(map.get("updateTime"));
 		
	
		directOrder.addTime = Utils.parseDate(map.get("addTime"));
 		
	
		directOrder.status = Utils.parseShort(map.get("status"));
 		
	
		directOrder.dx = Utils.parseDouble(map.get("dx"));
 		
	
		return directOrder;
	}
	
	
	/**字段设置标记队列**/
	private Map<String,Boolean> seted=new HashMap();
	public Boolean getSeted(String key){
		return seted.get(key);
	}
	public void setSeted(String key){
		seted.put(key,true);
	}
	/**同步未set的字段**/
	public void mergeSet(DirectOrder old){
		Field[] fields = this.getClass().getDeclaredFields();
		try {
			for(Field field:fields){
				String key = field.getName();
				if(seted.get(key)==null && field.getAnnotation(column.class)!=null){
					field.setAccessible(true);
					field.set(this, field.get(old));					
				}
			}
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	
		
	/**自定义变量存储**/
	private Map values=new HashMap();
	public Map getValues(){
		return values;
	}
	public void setValues(String name,Object value){
		values.put(name,value);
	}
	
	/**分表时的表名后缀**/
	private String suffix;
	public String getSuffix() {
		return suffix;
	}
	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	
	
	/**获取数据库名称**/
	public static String getDataBaseName(){
		return Utils.config("spring.datasource.distribute_sys.name");
	}
	
	
	public static String getIcon(){
		return "/images/icons/20088256421529677802.png";
	}
	public static String getIconfont(){
		return "icon-weibiaoti11";
	}
	public static enum ACT{
		列表,添加,修改,详情,退款审核通过,退款审核拒绝,品牌发货
	};
	public static String getUrl(ACT act,DirectOrder.M params){
		if(params==null)params=new DirectOrder.M(0);
		params.remove("joins");
		params.remove("definexs");
		params.remove("distinct");
		String strUrl = "/admin/goods/directorder.edit.html?";
		if(params.get("id")!=null){
			strUrl+="&id="+Utils.encode(""+params.get("id"),Utils.UTF8);
		}
		if(act==ACT.列表){
			strUrl = "/admin/goods/directorder.html?1=1";
		
		}else if(act==ACT.添加){
			strUrl+="&edittype=insert";
		
		
		}else if(act==ACT.修改){
			strUrl+="&edittype=update";
		
		}else if(act==ACT.详情){
			strUrl+="&edittype=detail";
		
		}else if(act==ACT.退款审核通过){
			strUrl+="&edittype=adopt";			
		
		}else if(act==ACT.退款审核拒绝){
			strUrl+="&edittype=refuse";			
		
		}else if(act==ACT.品牌发货){
			strUrl+="&edittype=methodname";			
		
		}		
		if(params!=null){
			for(Object key:params.keySet()){
				strUrl+="&"+key+"="+Utils.encode(""+params.get(key),Utils.UTF8)+"";
			}
		}
		return strUrl;
	}
	public String getDetailUrl(){
		return this.getUrl(ACT.详情, where.id(this.getId()));
	}
	
	/**
	* 转跳到当前地址
	**/
	public static Protocol redirect(DirectOrder.ACT act,DirectOrder.M params){
		Protocol protocol = Protocol.create(true,null,"ACT_REDIRECT");
		protocol.set("url",DirectOrder.getUrl(act, params));
		return protocol;
	}
	/**
	* 打开一个新的tab页面
	**/
	public static Protocol href(DirectOrder.ACT act,DirectOrder.M params){
		Protocol protocol = Protocol.create(true,null,"ACT_HREF");
		protocol.set("url",DirectOrder.getUrl(act, params));
		protocol.set("title",act.name());
		return protocol;
	}
	/**
	* 显示一个消息框，并且关闭当前的对话框
	**/
	public static Protocol message(String message){
		Protocol protocol = Protocol.create(true,null,"ACT_MESSAGE");
		protocol.set("message",message);
		return protocol;
	}
	
	
	static com.distribute.framework.dao.IDirectOrderDao getDirectOrderDao(){
		return Utils.getBean("directOrderDao");
	};
	
}